Function at 0x4d3960
Capabilities:
Check if file exists
Create directory
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4fb92f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x66c
push ebx
push ebp
mov ebp, ecx
push esi
push edi
xor ebx, ebx
lea eax, [ebp + 0x6274c]
or esi, 0xffffffff
push eax
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esp + 0x14], 1
mov edi, dword [ebp + 0x620]
xor ecx, ecx
test edi, edi
mov dword [esp + 0x684], ebx
jle 0x4d3a35
mov eax, dword [ebp + 0x608]
mov edx, dword [esp + 0x690]
cmp dword [eax + 8], edx
jne 0x4d39db
test ebx, ebx
jne 0x4d39d1
mov ebx, 1
mov esi, dword [eax + 0xc]
mov dword [esp + 0x18], eax
inc esi
jmp 0x4d39df
test ebx, ebx
jne 0x4d39e9
inc ecx
add eax, 0xc80
cmp ecx, edi
jl 0x4d39bc
cmp esi, 0xffffffff
jle 0x4d3a35
mov eax, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push eax
call esi
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x68c]
mov dword [esp + 0x14], 0
push 2
mov edx, dword [ecx]
mov ecx, ebp
push edx
push eax
call fcn.004d2e60
mov edi, eax
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4d3ea6
mov ecx, dword [esp + 0x10]
push ecx
call esi
jmp 0x4d3ea6
mov edx, dword [ebp + 0x608]
xor ebx, ebx
or eax, 0xffffffff
cmp edx, ebx
je 0x4d3a93
mov esi, dword [esp + 0x68c]
cmp esi, ebx
jle 0x4d3a64
cmp esi, 0xc350
jge 0x4d3a64
mov ecx, dword [ebp + esi*4 + 0xc4c]
cmp ecx, ebx
je 0x4d3a96
jmp 0x4d3a77
cmp esi, 0x4190ab00
jl 0x4d3a96
mov ecx, dword [ebp + esi*4 - 0x63f9274]
cmp ecx, ebx
je 0x4d3a96
mov eax, dword [ecx]
cmp eax, 0xffffffff
je 0x4d3a96
cmp eax, edi
jge 0x4d3a93
lea ecx, [eax + eax*4]
lea ecx, [ecx + ecx*4]
shl ecx, 7
add ecx, edx
je 0x4d3a93
cmp dword [ecx], esi
je 0x4d3a96
or eax, 0xffffffff
lea ecx, [eax + eax*4]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
lea ecx, [ecx + ecx*4]
shl ecx, 7
lea esi, [ecx + edx]
mov dl, byte [esp + 0x37]
mov dword [esp + 0x18], esi
mov byte [esp + 0x1c], dl
mov edx, dword [esi + 8]
cmp eax, edi
mov byte [esp + 0x684], 1
mov dword [esp + 0x2c], edx
mov ebx, eax
jge 0x4d3b73
xor eax, eax
cmp esi, eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], eax
je 0x4d3b73
mov edi, ecx
mov eax, dword [esp + 0x2c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x4d3b73
mov eax, dword [esi + 0xc]
lea ecx, [esp + 0x54]
dec eax
push ecx
mov dword [esi + 0xc], eax
mov dword [esi + 0x18], 4
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
mov eax, dword [esp + 0x54]
lea edx, [esi + 0x1c]
mov dword [esi + 0x1c], eax
mov ecx, dword [esp + 0x58]
mov dword [edx + 4], ecx
mov eax, dword [esp + 0x5c]
mov dword [edx + 8], eax
mov ecx, dword [esp + 0x60]
mov dword [edx + 0xc], ecx
mov edx, dword [esi]
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x24]
mov eax, dword [esi + 0xc]
lea ecx, [esp + 0x38]
push ecx
push edx
lea ecx, [esp + 0x24]
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], esi
call fcn.004df560
mov eax, dword [ebp + 0x620]
inc ebx
add edi, 0xc80
cmp ebx, eax
jge 0x4d3b73
mov eax, dword [ebp + 0x608]
mov esi, edi
add esi, eax
jne 0x4d3aeb
mov eax, dword [ebp + 0x14]
mov esi, 2
cmp eax, esi
jne 0x4d3d2e
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4d3b9e
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [esp + 0x14], 0
cmp dword [ebp + 0x14], esi
jne 0x4d3cdb
push 0x410
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 4
test esi, esi
je 0x4d3cdb
lea eax, [ebp + 0x6274c]
lea ecx, [esp + 0x2c]
push eax
call fcn.004d3f40
mov ebx, dword [esp + 0x18]
mov ecx, 0x104
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov ecx, 0x103
lea edi, [esp + 0x26e]
mov word [esp + 0x26c], ax
lea edx, [esp + 0x26c]
rep stosd dword es:[edi], eax
mov ecx, dword [ebx]
mov byte [esp + 0x684], 2
push ecx
push 0x208
push edx
mov ecx, ebp
stosw word es:[edi], ax
call fcn.004d83f0
mov edi, dword [sym.imp.MSVCRT.dll_wcslen]
lea eax, [esp + 0x26c]
push eax
call edi
lea ecx, [esp + 0x270]
push eax
push ecx
push esi
call dword [sym.imp.MSVCRT.dll_wcsncat]
lea edx, [esp + 0x27c]
push edx
call edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x7a]
mov word [esp + 0x78], 0
rep stosd dword es:[edi], eax
add esp, 0x14
lea ecx, [esp + 0x64]
stosw word es:[edi], ax
mov eax, dword [esp + 0x690]
push eax
push 0x104
push ecx
mov ecx, ebp
call fcn.004d83f0
lea edx, [esp + 0x64]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
je 0x4d3c9b
lea eax, [esp + 0x64]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4d3c9b
mov eax, dword [esp + 0x30]
test eax, eax
je 0x4d3cdb
jmp 0x4d3cd0
lea ecx, [esp + 0x2c]
call fcn.004d3940
mov edx, dword [ebx]
push 2
push edx
mov ecx, ebp
call fcn.004d9800
push 4
lea eax, [esp + 0x68]
push esi
push eax
mov ecx, ebp
call fcn.004d8280
push esi
call fcn.004ba355
mov eax, dword [esp + 0x34]
add esp, 4
test eax, eax
je 0x4d3cdb
mov ecx, dword [esp + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
push edx
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x68c], 0
call fcn.00480b50
mov ecx, dword [esp + 0x20]
push ecx
call fcn.004ba355
mov ecx, dword [esp + 0x18]
xor eax, eax
add esp, 4
cmp ecx, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
je 0x4d3d24
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 1
jmp 0x4d3ea8
push 0xc80
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x2c], eax
xor esi, esi
mov byte [esp + 0x684], 3
cmp eax, esi
je 0x4d3d58
mov ecx, eax
call fcn.004d3ed0
mov ebx, eax
jmp 0x4d3d5a
xor ebx, ebx
cmp ebx, esi
mov byte [esp + 0x684], 1
jne 0x4d3db5
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
push eax
push ecx
lea ecx, [esp + 0x24]
mov byte [esp + 0x68c], 0
call fcn.00480b50
mov edx, dword [esp + 0x20]
push edx
call fcn.004ba355
mov eax, dword [esp + 0x18]
add esp, 4
cmp eax, esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
je 0x4d3dad
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
or eax, 0xffffffff
jmp 0x4d3ea8
mov ecx, 0x320
xor eax, eax
mov edi, ebx
mov dword [ebp + 0x5fc], 1
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x18]
mov ecx, 0x320
mov esi, eax
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x690]
mov esi, dword [ebx + 8]
mov dword [ebx + 8], ecx
mov dword [eax + 8], ecx
lea ecx, [esp + 0x44]
mov edi, 1
push ecx
mov dword [eax + 0xc], edi
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x44]
add edx, 0x1c
push 0x4ce9f0
push 0xc80
mov dword [edx], eax
mov ecx, dword [esp + 0x50]
mov dword [edx + 4], ecx
mov eax, dword [esp + 0x54]
mov dword [edx + 8], eax
mov ecx, dword [esp + 0x58]
mov dword [edx + 0xc], ecx
mov edx, dword [ebp + 0x620]
mov eax, dword [ebp + 0x608]
push edx
push eax
call dword [sym.imp.MSVCRT.dll_qsort]
add esp, 0x10
mov ecx, ebp
call fcn.004d60c0
lea ecx, [esp + 0x10]
call fcn.004d3940
mov ecx, dword [ebx + 8]
mov edx, dword [ebx]
push ecx
push esi
push edx
mov ecx, ebp
call fcn.004d3f60
cmp dword [ebp + 0x14], edi
jne 0x4d3e6a
mov ecx, ebp
call fcn.004cff10
lea eax, [esp + 0x1c]
push esi
push eax
push edi
push ebx
mov ecx, ebp
call fcn.004d1760
push ebx
call fcn.004ba355
add esp, 4
lea ecx, [esp + 0x1c]
mov byte [esp + 0x684], 0
call fcn.00451530
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4d3ea6
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
mov ecx, dword [esp + 0x67c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x678
ret 8