Function at 0x42f7c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4a2a80]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0xc], 0xffffffff
je 0x42fa62
mov edi, dword [ebp + 0xc]
mov eax, dword [ebx + 0x10]
add edi, 0x2c
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], 0
sub eax, 0
je 0x42f972
sub eax, 1
je 0x42f912
sub eax, 1
jne 0x42fa62
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0
push 0
push 0
push 0
push eax
push esi
push 0
push 0xfde9
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push eax
mov dword [ebp - 0xc], eax
call fcn.00436731
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
add esp, 4
mov dword [ebp - 0x10], eax
test eax, eax
je 0x42f881
push 0
push 0
push dword [ebp - 0xc]
push eax
push dword [ebp - 0x14]
push dword [ebp + 8]
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push dword [ebx + 0xc]
call esi
push dword [ebp - 0x10]
call fcn.00436487
add esp, 4
push 0
lea eax, [ebp - 8]
push eax
push 1
push 0x48e114
push dword [ebx + 0xc]
call esi
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0
push 0
push 0
push 0
push eax
push edi
push 0
push 0xfde9
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push eax
mov dword [ebp - 0xc], eax
call fcn.00436731
add esp, 4
mov dword [ebp - 0x10], eax
test eax, eax
je 0x42f8fb
push 0
push 0
push dword [ebp - 0xc]
push eax
push dword [ebp - 0x14]
push edi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, dword [ebp - 0x10]
lea eax, [ebp - 8]
push 0
push eax
push dword [ebp - 0xc]
push edi
push dword [ebx + 0xc]
call esi
push edi
call fcn.00436487
add esp, 4
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x48e118
push dword [ebx + 0xc]
call esi
jmp 0x42fa62
mov esi, dword [ebp + 8]
lea eax, [ebp - 8]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0
push eax
push esi
call edi
add eax, eax
push eax
push esi
push dword [ebx + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
call esi
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x48e114
push dword [ebx + 0xc]
call esi
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp - 0xc]
call edi
add eax, eax
push eax
push dword [ebp - 0xc]
push dword [ebx + 0xc]
call esi
push 0
lea eax, [ebp - 8]
push eax
push 4
push 0x48e0b4
push dword [ebx + 0xc]
call esi
jmp 0x42fa62
mov eax, dword [ebp + 8]
test eax, eax
jne 0x42f97e
mov dword [ebp - 0xc], eax
jmp 0x42f9c0
mov ecx, eax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42f983
sub ecx, edx
sar ecx, 1
lea esi, [ecx + 1]
cmp esi, 0x3fffffff
jle 0x42f9a6
mov dword [ebp - 0xc], 0
jmp 0x42f9c0
add esi, esi
mov eax, esi
call fcn.00436b30
mov eax, esp
push 3
push esi
push dword [ebp + 8]
push eax
call fcn.0042e7b0
mov dword [ebp - 0xc], eax
test edi, edi
je 0x42f9ea
mov ecx, edi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42f9d0
sub ecx, edx
sar ecx, 1
lea esi, [ecx + 1]
cmp esi, 0x3fffffff
jle 0x42f9f3
mov dword [ebp - 0x10], 0
jmp 0x42fa0b
add esi, esi
mov eax, esi
call fcn.00436b30
mov eax, esp
push 3
push esi
push edi
push eax
call fcn.0042e7b0
mov dword [ebp - 0x10], eax
mov edi, dword [ebp - 0xc]
lea eax, [ebp - 8]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0
push eax
push edi
call esi
push eax
push edi
push dword [ebx + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
call edi
push 0
lea eax, [ebp - 8]
push eax
push 1
push 0x48e114
push dword [ebx + 0xc]
call edi
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x10]
call esi
push eax
push dword [ebp - 0x10]
push dword [ebx + 0xc]
call edi
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x48e118
push dword [ebx + 0xc]
call edi
lea esp, [ebp - 0x20]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00436441
mov esp, ebp
pop ebp
ret 8