Function at 0x4d5100
Capabilities:
Check if file exists
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x5a8268
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5f13cc]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
lea edi, [esp + 0x10]
call fcn.00474ab0
mov edi, 0x603384
mov dword [esp + 0x20], 0
call fcn.004035d0
or esi, 0xffffffff
mov dword [esp + 0x20], esi
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4d5167
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [0x603384]
mov eax, dword [edx - 0xc]
test eax, eax
jle 0x4d519d
lea ecx, [eax - 1]
test ecx, ecx
jl 0x4d5351
cmp ecx, eax
jg 0x4d5351
movzx eax, word [edx + ecx*2]
cmp ax, 0x5c
je 0x4d519d
push 0x5c
mov edi, 0x603384
call fcn.00404400
lea ecx, [esp + 0x10]
push 0x603384
push ecx
mov ebx, str.cdict_
call fcn.00412480
add esp, 8
mov edi, 0x603390
mov dword [esp + 0x20], 1
call fcn.004035d0
mov dword [esp + 0x20], esi
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
mov ecx, esi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4d51e9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [0x603390]
push 0
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
lea edx, [esp + 0x10]
push 0x603384
push edx
mov ebx, str.cdictlist.ini
call fcn.00412480
add esp, 8
mov edi, 0x603394
mov dword [esp + 0x20], 2
call fcn.004035d0
mov dword [esp + 0x20], esi
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4d5246
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ebx, [esp + 0x10]
call fcn.004747c0
mov edi, 0x603388
mov dword [esp + 0x20], 3
call fcn.004035d0
mov dword [esp + 0x20], esi
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4d5284
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [0x603388]
mov ecx, dword [edx - 0xc]
test ecx, ecx
jle 0x4d52ba
lea eax, [ecx - 1]
test eax, eax
jl 0x4d5351
cmp eax, ecx
jg 0x4d5351
movzx eax, word [edx + eax*2]
cmp ax, 0x5c
je 0x4d52ba
push 0x5c
mov edi, 0x603388
call fcn.00404400
lea ecx, [esp + 0x14]
push 0x603388
push ecx
mov ebx, str.cdict_
call fcn.00412480
add esp, 8
mov edi, 0x60338c
mov dword [esp + 0x20], 4
call fcn.004035d0
mov dword [esp + 0x20], esi
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
lock xadd dword [edx], esi
dec esi
test esi, esi
jg 0x4d5304
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x28], 0
je 0x4d535b
mov ecx, dword [0x603394]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push ecx
mov esi, 1
call edi
test eax, eax
jne 0x4d532a
xor esi, esi
call fcn.004d43a0
mov edx, dword [0x603394]
push edx
call edi
test eax, eax
jne 0x4d533c
call fcn.004d58e0
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret
push 0x80070057
call fcn.00404550
mov eax, dword [0x603394]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
neg eax
sbb eax, eax
neg eax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret