Function at 0x430ce0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6b4
mov eax, dword [0x5bb250]
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 0x430d2e
mov eax, 6
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053e21c
mov esp, ebp
pop ebp
ret 8
mov dword [ebp - 0x668], eax
mov dword [ebp - 0x670], 0x430b40
mov dword [ebp - 0x66c], 0x430af0
mov dword [ebp - 0x63c], 0x446f10
mov dword [ebp - 0x638], 0x446f30
mov dword [ebp - 0x64c], 0x446f40
mov dword [ebp - 0x648], 0x446f60
call fcn.004471b0
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.00446be0
mov edi, eax
add esp, 8
test edi, edi
je 0x430e11
mov edx, dword [ebp - 0x638]
lea ecx, [ebp - 0x6b0]
call fcn.004448e0
test edi, edi
jne 0x431117
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 0x4310f9
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.00446f70
mov edi, eax
add esp, 0x20
mov dword [ebp - 0x640], edi
test edi, edi
jne 0x4310f9
push 0x206
push eax
mov word [ebp - 0x418], ax
lea eax, [ebp - 0x416]
push eax
call fcn.0053ca90
mov esi, dword [ebx - 8]
add esp, 0xc
test esi, esi
je 0x4310f4
cmp byte [esi], 0
je 0x4310f4
push edi
push edi
push 0xffffffffffffffff
push esi
push edi
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, 0x104
jae 0x4310f4
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 0x430f41
xor ecx, ecx
lea eax, [ebp - 0x418]
mov edx, 0x2f
lea edi, [ecx + 0x5c]
cmp dx, word [eax]
jne 0x430f2a
mov word [eax], di
inc ecx
lea eax, [ebp - 0x418]
cmp word [eax + ecx*2], 0
lea eax, [eax + ecx*2]
jne 0x430f22
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.0053ca90
mov ecx, dword [ebp - 0x65c]
lea eax, [ebp - 0x418]
add esp, 0xc
push eax
call fcn.0041fa80
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov esi, dword [ebp - 0x664]
test esi, esi
je 0x430fbe
cmp word [ebp - 0x210], 0
jne 0x430f97
xor ecx, ecx
jmp 0x430faf
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x430fa0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x210]
mov ecx, esi
push eax
call fcn.004203d0
cmp byte [ebx - 2], 0
je 0x430fdb
mov ecx, dword [ebp - 0x634]
lea eax, [ebp - 0x210]
push eax
call fcn.00431150
jmp 0x4310bb
xor eax, eax
push 0x208
push eax
mov word [ebp - 0x628], ax
lea eax, [ebp - 0x626]
push eax
call fcn.0053ca90
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push 0x594340
lea eax, [ebp - 0x628]
push 0x104
push eax
call fcn.00544ed3
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.00431150
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 0x4310ea
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 0x4310d9
cmp dword [ebp - 0x660], edi
jne 0x4310d9
cmp byte [ebx], 0
je 0x4310aa
lea eax, [ebx - 0x1c]
push eax
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
je 0x4310d9
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4310ea
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 0x430e50
jmp 0x4310f9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4310f9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x4310f9
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.004448e0
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0053e21c
mov esp, ebp
pop ebp
ret 8