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

Disassembly:
push 0xffffffffffffffff
push 0x4d1fcf
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 + 0x62750]
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 + 0x624]
xor ecx, ecx
test edi, edi
mov dword [esp + 0x684], ebx
jle 0x4b4325
mov eax, dword [ebp + 0x60c]
mov edx, dword [esp + 0x690]
cmp dword [eax + 8], edx
jne 0x4b42cb
test ebx, ebx
jne 0x4b42c1
mov ebx, 1
mov esi, dword [eax + 0xc]
mov dword [esp + 0x18], eax
inc esi
jmp 0x4b42cf
test ebx, ebx
jne 0x4b42d9
inc ecx
add eax, 0xc80
cmp ecx, edi
jl 0x4b42ac
cmp esi, 0xffffffff
jle 0x4b4325
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.004b3770
mov edi, eax
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4b4796
mov ecx, dword [esp + 0x10]
push ecx
call esi
jmp 0x4b4796
mov edx, dword [ebp + 0x60c]
xor ebx, ebx
or eax, 0xffffffff
cmp edx, ebx
je 0x4b4383
mov esi, dword [esp + 0x68c]
cmp esi, ebx
jle 0x4b4354
cmp esi, 0xc350
jge 0x4b4354
mov ecx, dword [ebp + esi*4 + 0xc50]
cmp ecx, ebx
je 0x4b4386
jmp 0x4b4367
cmp esi, 0x4190ab00
jl 0x4b4386
mov ecx, dword [ebp + esi*4 - 0x63f9270]
cmp ecx, ebx
je 0x4b4386
mov eax, dword [ecx]
cmp eax, 0xffffffff
je 0x4b4386
cmp eax, edi
jge 0x4b4383
lea ecx, [eax + eax*4]
lea ecx, [ecx + ecx*4]
shl ecx, 7
add ecx, edx
je 0x4b4383
cmp dword [ecx], esi
je 0x4b4386
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 0x4b4463
xor eax, eax
cmp esi, eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], eax
je 0x4b4463
mov edi, ecx
mov eax, dword [esp + 0x2c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x4b4463
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.004bf460
mov eax, dword [ebp + 0x624]
inc ebx
add edi, 0xc80
cmp ebx, eax
jge 0x4b4463
mov eax, dword [ebp + 0x60c]
mov esi, edi
add esi, eax
jne 0x4b43db
mov eax, dword [ebp + 0x14]
mov esi, 2
cmp eax, esi
jne 0x4b461e
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4b448e
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 0x4b45cb
push 0x410
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 4
test esi, esi
je 0x4b45cb
lea eax, [ebp + 0x62750]
lea ecx, [esp + 0x2c]
push eax
call fcn.004b4830
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.004b8b50
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.004b8b50
lea edx, [esp + 0x64]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
je 0x4b458b
lea eax, [esp + 0x64]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4b458b
mov eax, dword [esp + 0x30]
test eax, eax
je 0x4b45cb
jmp 0x4b45c0
lea ecx, [esp + 0x2c]
call fcn.004b4230
mov edx, dword [ebx]
push 2
push edx
mov ecx, ebp
call fcn.004b9d80
push 4
lea eax, [esp + 0x68]
push esi
push eax
mov ecx, ebp
call fcn.004b89e0
push esi
call fcn.0049bb1b
mov eax, dword [esp + 0x34]
add esp, 4
test eax, eax
je 0x4b45cb
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.004846b0
mov ecx, dword [esp + 0x20]
push ecx
call fcn.0049bb1b
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 0x4b4614
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 1
jmp 0x4b4798
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 0x4b4648
mov ecx, eax
call fcn.004b47c0
mov ebx, eax
jmp 0x4b464a
xor ebx, ebx
cmp ebx, esi
mov byte [esp + 0x684], 1
jne 0x4b46a5
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.004846b0
mov edx, dword [esp + 0x20]
push edx
call fcn.0049bb1b
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 0x4b469d
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
or eax, 0xffffffff
jmp 0x4b4798
mov ecx, 0x320
xor eax, eax
mov edi, ebx
mov dword [ebp + 0x600], 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 0x4af570
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 + 0x624]
mov eax, dword [ebp + 0x60c]
push edx
push eax
call dword [sym.imp.MSVCRT.dll_qsort]
add esp, 0x10
mov ecx, ebp
call fcn.004b6930
lea ecx, [esp + 0x10]
call fcn.004b4230
mov ecx, dword [ebx + 8]
mov edx, dword [ebx]
push ecx
push esi
push edx
mov ecx, ebp
call fcn.004b4850
cmp dword [ebp + 0x14], edi
jne 0x4b475a
mov ecx, ebp
call fcn.004b08b0
lea eax, [esp + 0x1c]
push esi
push eax
push edi
push ebx
mov ecx, ebp
call fcn.004b20e0
push ebx
call fcn.0049bb1b
add esp, 4
lea ecx, [esp + 0x1c]
mov byte [esp + 0x684], 0
call fcn.0045a030
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4b4796
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