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

Disassembly:
push 0xffffffffffffffff
push 0x4952dc
mov eax, dword fs:[0]
push eax
mov eax, 0x16a8
call fcn.00469100
mov eax, dword [0x4bb190]
xor eax, esp
mov dword [esp + 0x16a4], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4bb190]
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 0x432e42
cmp esi, ebp
je 0x432e42
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x432e42
push 0x206
lea ecx, [esp + 0x1aa]
xor eax, eax
push ebp
push ecx
mov word [esp + 0x1b0], ax
call fcn.00467850
mov eax, esi
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x4328e3
sub eax, edx
sar eax, 1
push eax
push esi
lea edx, [esp + 0x1ac]
push 0x103
push edx
call fcn.004686d0
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.00467850
mov eax, edi
add esp, 0xc
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x432940
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.00443350
add esp, 8
mov edi, eax
mov dword [esp + 0x14], edi
cmp dword [esp + 0x18], ebp
jne 0x432e42
push edi
call fcn.004436a0
mov esi, eax
add esp, 4
cmp esi, ebp
je 0x432e14
push 0x206
lea eax, [esp + 0x4b6]
xor edx, edx
push ebp
push eax
mov word [esp + 0x4bc], dx
call fcn.00467850
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 0x4329c8
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 0x432a06
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x4b4]
push ecx
lea ecx, [esp + 0x54]
call fcn.00402220
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 0x432a50
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x1a8]
push eax
lea ecx, [esp + 0x70]
call fcn.00402220
push 0xffffffffffffffff
push ebp
lea ecx, [esp + 0x54]
push ecx
lea ecx, [esp + 0x74]
mov byte [esp + 0x16d0], 1
call fcn.00405920
mov esi, dword [esp + 0x60]
cmp esi, ebp
je 0x432cad
lea edi, [esi - 1]
cmp esi, edi
ja 0x432aa6
call fcn.00481a3c
mov esi, dword [esp + 0x60]
mov ebp, dword [esp + 0x64]
mov ebx, dword [esp + 0x50]
mov eax, ebx
cmp ebp, 8
jae 0x432ab9
lea eax, [esp + 0x50]
cmp word [eax + edi*2], 0x5c
je 0x432ca2
lea edi, [esi - 1]
cmp esi, edi
ja 0x432adc
call fcn.00481a3c
mov ebp, dword [esp + 0x64]
mov esi, dword [esp + 0x60]
mov ebx, dword [esp + 0x50]
mov eax, ebx
cmp ebp, 8
jae 0x432ae7
lea eax, [esp + 0x50]
cmp word [eax + edi*2], 0x2f
je 0x432ca2
push 0x103
lea edx, [esp + 0xa5]
push 0
push edx
mov byte [esp + 0xac], 0
call fcn.00467850
add esp, 0xc
mov eax, ebx
cmp ebp, 8
jae 0x432b1c
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.00443b40
mov edi, eax
add esp, 0xc
test edi, edi
je 0x432e30
mov eax, dword [esp + 0x50]
mov ebp, 8
cmp dword [esp + 0x64], ebp
jae 0x432b72
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.00443f30
add esp, 0x10
test eax, eax
jne 0x432e21
mov eax, dword [esp + 0x6c]
cmp dword [esp + 0x80], ebp
jae 0x432bbf
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 0x432e21
cmp dword [esp + 0x44], 0
jle 0x432c84
push 0xfff
lea edx, [esp + 0x6bd]
push 0
push edx
mov byte [esp + 0x6c4], 0
call fcn.00467850
push 0
push 0
push edi
call fcn.00443dc0
push 0x1000
lea eax, [esp + 0x6d4]
push eax
push edi
call fcn.004438f0
mov esi, eax
add esp, 0x24
test esi, esi
je 0x432c84
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 0x432e6e
cmp dword [esp + 0x1c], esi
jne 0x432e6e
push edi
call fcn.00443b10
add esp, 4
cmp eax, dword [esp + 0x44]
jge 0x432c84
push 0x1000
lea eax, [esp + 0x6bc]
push eax
push edi
call fcn.004438f0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x432c30
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.004437b0
mov edi, dword [esp + 0x18]
add esp, 4
xor ebp, ebp
lea ebx, [ebp + 7]
jmp 0x432da5
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 0x432cd0
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x1a8]
push edx
lea ecx, [esp + 0x8c]
call fcn.00402220
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.00407890
add esp, 0xc
push 0xffffffffffffffff
push ebp
push eax
lea ecx, [esp + 0x90]
mov byte [esp + 0x16d0], 3
call fcn.00402120
mov esi, 8
cmp dword [esp + 0x38], esi
jb 0x432d46
mov eax, dword [esp + 0x24]
push eax
call fcn.004440cb
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 0x432d6c
lea eax, [esp + 0x88]
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp dword [esp + 0x9c], esi
jb 0x432d8d
mov edx, dword [esp + 0x88]
push edx
call fcn.004440cb
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.00443720
push eax
push edi
call fcn.00443770
push edi
call fcn.004436a0
mov edi, 8
add esp, 0x10
mov esi, eax
cmp dword [esp + 0x80], edi
jb 0x432dd8
mov ecx, dword [esp + 0x6c]
push ecx
call fcn.004440cb
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 0x432e08
mov eax, dword [esp + 0x50]
push eax
call fcn.004440cb
add esp, 4
mov edi, dword [esp + 0x14]
cmp esi, ebp
jne 0x4329a0
push edi
call fcn.00443190
add esp, 4
mov al, 1
jmp 0x432e44
push edi
call fcn.004437b0
push ebx
call fcn.00443190
add esp, 8
lea ecx, [esp + 0x68]
call fcn.00405180
lea ecx, [esp + 0x4c]
call fcn.00405180
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.004677ab
add esp, 0x16b4
ret 8
push edi
call fcn.004437b0
push ebx
call fcn.00443190
add esp, 8
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x432e30