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

Disassembly:
push 0xffffffffffffffff
push 0x4ff11b
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x5364d0]
xor eax, esp
mov dword [esp + 0x218], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5364d0]
xor eax, esp
push eax
lea eax, [esp + 0x230]
mov dword fs:[0], eax
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x2e]
push ecx
mov word [esp + 0x30], ax
call fcn.004e8fe0
mov esi, dword [0x566b60]
mov ecx, dword [esi - 0xc]
mov eax, dword [esi - 8]
mov edx, 1
sub edx, dword [esi - 4]
sub eax, ecx
add esp, 0xc
or eax, edx
jge 0x48e8cf
mov eax, 0x566b60
call fcn.004014d0
mov esi, dword [0x566b60]
lea eax, [esp + 0x24]
mov edi, esi
mov ecx, eax
mov edx, 0x104
sub edi, ecx
mov edi, edi
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x48e900
movzx ecx, word [edi + eax]
test cx, cx
je 0x48e900
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x48e8e0
jmp 0x48e904
test edx, edx
jne 0x48e907
sub eax, 2
xor edx, edx
mov word [eax], dx
mov eax, dword [esi - 8]
push eax
push esi
call fcn.004e4d4d
add esp, 8
test eax, eax
jl 0x48eaf2
mov ecx, dword [0x566b60]
cmp eax, dword [ecx - 8]
jg 0x48eaf2
mov dword [ecx - 0xc], eax
mov edx, dword [0x566b60]
xor ecx, ecx
mov word [edx + eax*2], cx
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x48e96d
push eax
lea edx, [esp + 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x48eafc
mov eax, dword [0x566b38]
mov edi, dword [eax]
mov esi, dword [0x566b20]
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], esi
mov ebx, dword [0x566b38]
test esi, esi
je 0x48e994
cmp esi, dword [0x566b20]
je 0x48e999
call fcn.004e48f7
cmp edi, ebx
je 0x48e9fa
mov ebp, dword [0x566b60]
test esi, esi
jne 0x48e9f2
call fcn.004e48f7
xor eax, eax
cmp edi, dword [eax + 0x18]
jne 0x48e9b8
call fcn.004e48f7
mov ebx, dword [edi + 0x10]
test esi, esi
jne 0x48e9f6
call fcn.004e48f7
cmp edi, dword [esi + 0x18]
jne 0x48e9ce
call fcn.004e48f7
mov ecx, dword [edi + 0xc]
push ebp
push ebx
push ecx
push 0x517d4c
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea esi, [esp + 0x14]
call fcn.0048d760
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
jmp 0x48e982
mov eax, dword [esi]
jmp 0x48e9ae
mov esi, dword [esi]
jmp 0x48e9c4
mov edx, dword [0x566b58]
mov ebx, dword [edx]
mov esi, dword [0x566b40]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], esi
or ebp, 0xffffffff
mov edi, dword [0x566b58]
test esi, esi
je 0x48ea25
cmp esi, dword [0x566b40]
je 0x48ea2a
call fcn.004e48f7
cmp ebx, edi
je 0x48eafc
mov eax, dword [0x563288]
mov edx, dword [eax + 0xc]
mov ecx, 0x563288
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
mov dword [esp + 0x238], 0
test esi, esi
jne 0x48eae7
call fcn.004e48f7
xor eax, eax
cmp ebx, dword [eax + 0x18]
jne 0x48ea6c
call fcn.004e48f7
mov eax, dword [ebx + 0x10]
push eax
push 0x5120d0
lea edi, [esp + 0x1c]
call fcn.00404890
mov edi, dword [0x566b60]
add esp, 8
test esi, esi
jne 0x48eaee
call fcn.004e48f7
cmp ebx, dword [esi + 0x18]
jne 0x48ea9a
call fcn.004e48f7
mov esi, dword [esp + 0x14]
mov eax, dword [ebx + 0xc]
push edi
push esi
push eax
push 0x517d4c
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea eax, [esi - 0x10]
mov dword [esp + 0x238], ebp
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48ead1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esi, [esp + 0x1c]
call fcn.0048d760
mov ebx, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
jmp 0x48ea13
mov eax, dword [esi]
jmp 0x48ea62
mov esi, dword [esi]
jmp 0x48ea90
push 0x80070057
call fcn.00401540
mov ecx, dword [esp + 0x230]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.004e3edb
add esp, 0x228
ret