Function at 0x430de0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6b4
mov eax, dword [0x5b8250]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, ecx
mov ecx, dword [ebp + 8]
push ebx
mov dword [ebp - 0x634], eax
push esi
mov eax, dword [eax]
mov dword [ebp - 0x65c], ecx
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x664], ecx
push edi
test eax, eax
jne 0x430e2e
mov eax, 6
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053aa3c
mov esp, ebp
pop ebp
ret 8
mov dword [ebp - 0x668], eax
mov dword [ebp - 0x670], 0x430c40
mov dword [ebp - 0x66c], 0x430bf0
mov dword [ebp - 0x63c], 0x447010
mov dword [ebp - 0x638], 0x447030
mov dword [ebp - 0x64c], 0x447040
mov dword [ebp - 0x648], 0x447060
call fcn.004472b0
lea eax, [ebp - 0x64c]
mov dword [ebp - 0x6b0], 0
push eax
lea eax, [ebp - 0x63c]
mov dword [ebp - 0x6ac], 0
xorps xmm0, xmm0
mov dword [ebp - 0x6a8], 0
push eax
lea edx, [ebp - 0x6b0]
mov dword [ebp - 0x6a4], 0
lea ecx, [ebp - 0x670]
mov dword [ebp - 0x6a0], 0
mov dword [ebp - 0x69c], 0
mov dword [ebp - 0x698], 0
mov dword [ebp - 0x694], 0
movdqu xmmword [ebp - 0x680], xmm0
call fcn.00446ce0
mov edi, eax
add esp, 8
test edi, edi
je 0x430f11
mov edx, dword [ebp - 0x638]
lea ecx, [ebp - 0x6b0]
call fcn.004449e0
test edi, edi
jne 0x431217
xor ecx, ecx
mov dword [ebp - 0x62c], 0
mov dword [ebp - 0x658], 0xffffffff
mov dword [ebp - 0x650], 0
mov dword [ebp - 0x630], ecx
cmp dword [ebp - 0x698], ecx
jbe 0x4311f9
mov ebx, dword [ebp - 0x694]
add ebx, 0x1c
lea esp, [esp]
lea eax, [ebp - 0x64c]
push eax
lea eax, [ebp - 0x63c]
push eax
lea eax, [ebp - 0x644]
push eax
lea eax, [ebp - 0x654]
push eax
lea eax, [ebp - 0x650]
push eax
lea eax, [ebp - 0x62c]
push eax
lea eax, [ebp - 0x658]
push eax
push ecx
lea edx, [ebp - 0x6b0]
lea ecx, [ebp - 0x670]
call fcn.00447070
mov edi, eax
add esp, 0x20
mov dword [ebp - 0x640], edi
test edi, edi
jne 0x4311f9
push 0x206
push eax
mov word [ebp - 0x418], ax
lea eax, [ebp - 0x416]
push eax
call fcn.005392b0
mov esi, dword [ebx - 8]
add esp, 0xc
test esi, esi
je 0x4311f4
cmp byte [esi], 0
je 0x4311f4
push edi
push edi
push 0xffffffffffffffff
push esi
push edi
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, 0x104
jae 0x4311f4
push eax
lea eax, [ebp - 0x418]
push eax
push 0xffffffffffffffff
push esi
push edi
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp word [ebp - 0x418], di
je 0x431041
xor ecx, ecx
lea eax, [ebp - 0x418]
mov edx, 0x2f
lea edi, [ecx + 0x5c]
cmp dx, word [eax]
jne 0x43102a
mov word [eax], di
inc ecx
lea eax, [ebp - 0x418]
cmp word [eax + ecx*2], 0
lea eax, [eax + ecx*2]
jne 0x431022
mov edi, dword [ebp - 0x640]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.005392b0
mov ecx, dword [ebp - 0x65c]
lea eax, [ebp - 0x418]
add esp, 0xc
push eax
call fcn.0041fb90
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov esi, dword [ebp - 0x664]
test esi, esi
je 0x4310be
cmp word [ebp - 0x210], 0
jne 0x431097
xor ecx, ecx
jmp 0x4310af
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4310a0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x210]
mov ecx, esi
push eax
call fcn.004204e0
cmp byte [ebx - 2], 0
je 0x4310db
mov ecx, dword [ebp - 0x634]
lea eax, [ebp - 0x210]
push eax
call fcn.00431250
jmp 0x4311bb
xor eax, eax
push 0x208
push eax
mov word [ebp - 0x628], ax
lea eax, [ebp - 0x626]
push eax
call fcn.005392b0
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push 0x591530
lea eax, [ebp - 0x628]
push 0x104
push eax
call fcn.00541843
add esp, 0x10
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov ecx, dword [ebp - 0x634]
lea eax, [ebp - 0x628]
push eax
call fcn.00431250
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4311ea
mov edi, dword [ebp - 0x644]
lea eax, [ebp - 0x660]
push 0
push eax
mov eax, dword [ebp - 0x654]
add eax, dword [ebp - 0x62c]
push edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4311d9
cmp dword [ebp - 0x660], edi
jne 0x4311d9
cmp byte [ebx], 0
je 0x4311aa
lea eax, [ebx - 0x1c]
push eax
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
je 0x4311d9
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4311ea
mov edi, dword [ebp - 0x640]
mov ecx, dword [ebp - 0x630]
add ebx, 0x20
inc ecx
mov dword [ebp - 0x630], ecx
cmp ecx, dword [ebp - 0x698]
jb 0x430f50
jmp 0x4311f9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4311f9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x4311f9
mov edi, 1
push dword [ebp - 0x62c]
mov esi, dword [ebp - 0x638]
call esi
add esp, 4
lea ecx, [ebp - 0x6b0]
mov edx, esi
call fcn.004449e0
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0053aa3c
mov esp, ebp
pop ebp
ret 8