Function at 0x432540
Capabilities:
Check if file exists
Create directory
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x494dec
mov eax, dword fs:[0]
push eax
mov eax, 0x16a8
call fcn.00468d30
mov eax, dword [0x4ba190]
xor eax, esp
mov dword [esp + 0x16a4], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4ba190]
xor eax, esp
push eax
lea eax, [esp + 0x16bc]
mov dword fs:[0], eax
mov edi, dword [esp + 0x16cc]
mov esi, dword [esp + 0x16d0]
xor ebp, ebp
cmp edi, ebp
je 0x432b32
cmp esi, ebp
je 0x432b32
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x432b32
push 0x206
lea ecx, [esp + 0x1aa]
xor eax, eax
push ebp
push ecx
mov word [esp + 0x1b0], ax
call fcn.00467480
mov eax, esi
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x4325d3
sub eax, edx
sar eax, 1
push eax
push esi
lea edx, [esp + 0x1ac]
push 0x103
push edx
call fcn.00468300
add esp, 0x10
lea eax, [esp + 0x1a4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
push 0x103
lea ecx, [esp + 0x3b1]
push ebp
push ecx
mov byte [esp + 0x3b8], 0
call fcn.00467480
mov eax, edi
add esp, 0xc
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x432630
push ebp
push ebp
push 0x104
sub eax, edx
lea edx, [esp + 0x3b8]
push edx
sar eax, 1
push eax
push edi
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x3b0]
push ecx
call fcn.00442fa0
add esp, 8
mov edi, eax
mov dword [esp + 0x14], edi
cmp dword [esp + 0x18], ebp
jne 0x432b32
push edi
call fcn.004432f0
mov esi, eax
add esp, 4
cmp esi, ebp
je 0x432b04
push 0x206
lea eax, [esp + 0x4b6]
xor edx, edx
push ebp
push eax
mov word [esp + 0x4bc], dx
call fcn.00467480
mov ecx, dword [esi + 0xc]
mov eax, ecx
add esp, 0xc
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4326b8
push 0x104
lea edx, [esp + 0x4b4]
push edx
sub eax, esi
push eax
push ecx
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor eax, eax
mov word [esp + 0x50], ax
mov ebx, 7
lea eax, [esp + 0x4b0]
mov dword [esp + 0x64], ebx
mov dword [esp + 0x60], ebp
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x4326f6
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x4b4]
push ecx
lea ecx, [esp + 0x54]
call fcn.00402210
xor edx, edx
lea eax, [esp + 0x1a4]
mov word [esp + 0x6c], dx
mov dword [esp + 0x16c4], ebp
mov dword [esp + 0x80], ebx
mov dword [esp + 0x7c], ebp
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x432740
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x1a8]
push eax
lea ecx, [esp + 0x70]
call fcn.00402210
push 0xffffffffffffffff
push ebp
lea ecx, [esp + 0x54]
push ecx
lea ecx, [esp + 0x74]
mov byte [esp + 0x16d0], 1
call fcn.004058d0
mov esi, dword [esp + 0x60]
cmp esi, ebp
je 0x43299d
lea edi, [esi - 1]
cmp esi, edi
ja 0x432796
call fcn.0048169c
mov esi, dword [esp + 0x60]
mov ebp, dword [esp + 0x64]
mov ebx, dword [esp + 0x50]
mov eax, ebx
cmp ebp, 8
jae 0x4327a9
lea eax, [esp + 0x50]
cmp word [eax + edi*2], 0x5c
je 0x432992
lea edi, [esi - 1]
cmp esi, edi
ja 0x4327cc
call fcn.0048169c
mov ebp, dword [esp + 0x64]
mov esi, dword [esp + 0x60]
mov ebx, dword [esp + 0x50]
mov eax, ebx
cmp ebp, 8
jae 0x4327d7
lea eax, [esp + 0x50]
cmp word [eax + edi*2], 0x2f
je 0x432992
push 0x103
lea edx, [esp + 0xa5]
push 0
push edx
mov byte [esp + 0xac], 0
call fcn.00467480
add esp, 0xc
mov eax, ebx
cmp ebp, 8
jae 0x43280c
lea eax, [esp + 0x50]
push 0
push 0
push 0x104
lea ecx, [esp + 0xac]
push ecx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push eax
push 0
push 0
call esi
mov ebx, dword [esp + 0x14]
push 0x11000
lea edx, [esp + 0xa4]
push edx
push ebx
call fcn.00443790
mov edi, eax
add esp, 0xc
test edi, edi
je 0x432b20
mov eax, dword [esp + 0x50]
mov ebp, 8
cmp dword [esp + 0x64], ebp
jae 0x432862
lea eax, [esp + 0x50]
mov edx, dword [esp + 0x60]
push 0
push 0
push 0x104
lea ecx, [esp + 0xac]
push ecx
push edx
push eax
push 0
push 0
call esi
push ebp
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0xa8]
push ecx
push ebx
call fcn.00443b80
add esp, 0x10
test eax, eax
jne 0x432b11
mov eax, dword [esp + 0x6c]
cmp dword [esp + 0x80], ebp
jae 0x4328af
lea eax, [esp + 0x6c]
push 0
push 0x80
push 2
push 0
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x432b11
cmp dword [esp + 0x44], 0
jle 0x432974
push 0xfff
lea edx, [esp + 0x6bd]
push 0
push edx
mov byte [esp + 0x6c4], 0
call fcn.00467480
push 0
push 0
push edi
call fcn.00443a10
push 0x1000
lea eax, [esp + 0x6d4]
push eax
push edi
call fcn.00443540
mov esi, eax
add esp, 0x24
test esi, esi
je 0x432974
push 0
lea ecx, [esp + 0x20]
push ecx
push esi
lea edx, [esp + 0x6c4]
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x432b5e
cmp dword [esp + 0x1c], esi
jne 0x432b5e
push edi
call fcn.00443760
add esp, 4
cmp eax, dword [esp + 0x44]
jge 0x432974
push 0x1000
lea eax, [esp + 0x6bc]
push eax
push edi
call fcn.00443540
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x432920
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.00443400
mov edi, dword [esp + 0x18]
add esp, 4
xor ebp, ebp
lea ebx, [ebp + 7]
jmp 0x432a95
mov edi, dword [esp + 0x14]
xor ebp, ebp
mov ebx, 7
xor ecx, ecx
lea eax, [esp + 0x1a4]
mov dword [esp + 0x9c], ebx
mov dword [esp + 0x98], ebp
mov word [esp + 0x88], cx
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x4329c0
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x1a8]
push edx
lea ecx, [esp + 0x8c]
call fcn.00402210
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x88]
push ecx
lea edx, [esp + 0x28]
push edx
mov byte [esp + 0x16d0], 2
call fcn.00407860
add esp, 0xc
push 0xffffffffffffffff
push ebp
push eax
lea ecx, [esp + 0x90]
mov byte [esp + 0x16d0], 3
call fcn.00402110
mov esi, 8
cmp dword [esp + 0x38], esi
jb 0x432a36
mov eax, dword [esp + 0x24]
push eax
call fcn.00443d03
add esp, 4
mov eax, dword [esp + 0x88]
xor ecx, ecx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x34], ebp
mov word [esp + 0x24], cx
cmp dword [esp + 0x9c], esi
jae 0x432a5c
lea eax, [esp + 0x88]
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp dword [esp + 0x9c], esi
jb 0x432a7d
mov edx, dword [esp + 0x88]
push edx
call fcn.00443d03
add esp, 4
xor eax, eax
mov dword [esp + 0x9c], ebx
mov dword [esp + 0x98], ebp
mov word [esp + 0x88], ax
push edi
call fcn.00443370
push eax
push edi
call fcn.004433c0
push edi
call fcn.004432f0
mov edi, 8
add esp, 0x10
mov esi, eax
cmp dword [esp + 0x80], edi
jb 0x432ac8
mov ecx, dword [esp + 0x6c]
push ecx
call fcn.00443d03
add esp, 4
xor edx, edx
mov dword [esp + 0x80], ebx
mov dword [esp + 0x7c], ebp
mov word [esp + 0x6c], dx
mov dword [esp + 0x16c4], 0xffffffff
cmp dword [esp + 0x64], edi
jb 0x432af8
mov eax, dword [esp + 0x50]
push eax
call fcn.00443d03
add esp, 4
mov edi, dword [esp + 0x14]
cmp esi, ebp
jne 0x432690
push edi
call fcn.00442de0
add esp, 4
mov al, 1
jmp 0x432b34
push edi
call fcn.00443400
push ebx
call fcn.00442de0
add esp, 8
lea ecx, [esp + 0x68]
call fcn.004053a0
lea ecx, [esp + 0x4c]
call fcn.004053a0
xor al, al
mov ecx, dword [esp + 0x16bc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x16a4]
xor ecx, esp
call fcn.004673e3
add esp, 0x16b4
ret 8
push edi
call fcn.00443400
push ebx
call fcn.00442de0
add esp, 8
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x432b20