Function at 0x403250
Capabilities:
Create directory
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x448
mov eax, dword [0x41d084]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [esi + 0x20], 0xffffffff
push ebx
push edi
mov edi, ecx
jne 0x40327f
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040905b
mov esp, ebp
pop ebp
ret
xor ebx, ebx
push ebx
push edi
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
lea eax, [ebp - 0x418]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push edi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
je 0x40326d
xor edi, edi
mov dword [0x41eec0], ebx
mov dword [0x41eebc], ebx
mov dword [0x41eec4], ebx
mov dword [ebp - 0x434], 1
mov dword [ebp - 0x43c], 0xffffffff
mov dword [ebp - 0x428], ebx
mov dword [ebp - 0x438], ebx
mov dword [ebp - 0x430], edi
cmp dword [esi + 0x405c], ebx
jbe 0x4034e1
mov dword [ebp - 0x42c], ebx
jmp 0x403302
xor ebx, ebx
mov ecx, dword [esi + 0x4080]
mov edx, dword [esi + 0x4080]
lea eax, [ecx + edi*4]
mov ecx, dword [eax + 4]
sub ecx, dword [eax]
mov eax, dword [edx + edi*4]
mov edx, dword [esi + 0x4084]
lea edx, [edx + eax*2]
mov eax, ebx
je 0x403348
lea ebx, [ebp - 0x210]
sub edx, ebx
mov edi, edi
lea ebx, [edx + eax*2]
mov bx, word [ebp + ebx - 0x210]
mov word [ebp + eax*2 - 0x210], bx
inc eax
cmp eax, ecx
jb 0x403330
mov eax, dword [esi]
mov edx, dword [eax + 4]
lea ecx, [ebp - 0x210]
push ecx
mov ecx, esi
call edx
mov ebx, dword [esi + 0x4050]
add ebx, dword [ebp - 0x42c]
cmp byte [ebx + 0x19], 0
je 0x40337e
push 0
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x4034bb
xor eax, eax
lea ecx, [esi + 0x10]
push ecx
mov dword [ebp - 0x420], eax
mov dword [ebp - 0x41c], eax
lea edx, [esi + 8]
push edx
lea eax, [ebp - 0x41c]
push eax
lea ecx, [ebp - 0x420]
push ecx
lea edx, [ebp - 0x438]
push edx
lea eax, [ebp - 0x428]
push eax
lea ecx, [ebp - 0x43c]
push ecx
lea edx, [esi + 0x24]
push edi
push edx
lea eax, [esi + 0x4040]
call fcn.00405dc0
add esp, 0x24
test eax, eax
jne 0x4034d7
mov eax, dword [0x41eec0]
add dword [0x41eebc], eax
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
lea ecx, [ebp - 0x210]
push ecx
mov dword [0x41eec0], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x424], eax
cmp eax, 0xffffffff
jne 0x40341f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4034bb
mov eax, dword [ebp - 0x420]
add eax, dword [ebp - 0x428]
mov edx, dword [ebp - 0x41c]
lea ecx, [ebp - 0x41c]
push ecx
mov dword [ebp - 0x41c], edx
mov edx, dword [esi]
mov edx, dword [edx + 8]
push eax
mov dword [ebp - 0x420], eax
lea eax, [ebp - 0x210]
push eax
mov ecx, esi
call edx
lea eax, [ebp - 0x424]
push eax
mov eax, dword [ebp - 0x420]
lea edi, [ebp - 0x41c]
call fcn.004035e0
mov edi, dword [ebp - 0x424]
add esp, 4
cmp byte [ebx + 0x1c], 0
je 0x40349f
mov ecx, dword [ebx]
mov edx, dword [ebx + 4]
lea eax, [ebp - 0x444]
push eax
push 0
push 0
push edi
mov dword [ebp - 0x444], ecx
mov dword [ebp - 0x440], edx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
cmp edi, 0xffffffff
je 0x4034b5
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x4034b5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [ebp - 0x430]
add dword [ebp - 0x42c], 0x20
inc edi
mov dword [ebp - 0x430], edi
cmp edi, dword [esi + 0x405c]
jb 0x403300
jmp 0x4034e1
mov dword [ebp - 0x434], 0
mov ecx, dword [ebp - 0x428]
mov eax, dword [esi + 0xc]
push ecx
lea edx, [esi + 8]
push edx
call eax
add esp, 8
lea ecx, [ebp - 0x418]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x434]
pop edi
xor ecx, ebp
pop ebx
call fcn.0040905b
mov esp, ebp
pop ebp
ret