Function at 0x4079d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x430d3e
mov eax, dword fs:[0]
push eax
mov eax, 0x2ea4
call fcn.0041f2d0
mov eax, dword [0x43c400]
xor eax, ebp
mov dword [ebp - 0x18], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x1e94]
call fcn.00415e30
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1264]
call fcn.0040ab50
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call fcn.004018e0
mov byte [ebp - 4], 2
push 0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x1264]
call fcn.0040ab70
test eax, eax
jne 0x407a5b
mov ecx, dword [ebp + 8]
push ecx
push 0x432c98
lea edx, [ebp - 0x10]
push edx
call fcn.00401e00
add esp, 0xc
jmp 0x407c66
lea ecx, [ebp - 0x1e94]
call fcn.00416660
test eax, eax
jne 0x407a6f
jmp 0x407c66
push 0
lea ecx, [ebp - 0x1264]
call fcn.0040b170
movzx eax, ax
push eax
push 0
push 0
lea ecx, [ebp - 0x1264]
call fcn.0040b150
push eax
lea ecx, [ebp - 0x1e94]
call fcn.00416730
test eax, eax
jne 0x407aa4
jmp 0x407c66
push 0
push 0
push 0xffffffffffffffff
lea ecx, [ebp - 0x1264]
call fcn.0040b190
push eax
lea ecx, [ebp - 0x1e94]
call fcn.00415eb0
test eax, eax
jne 0x407aca
jmp 0x407c66
lea ecx, [ebp - 0x1e94]
call fcn.004163e0
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x2eb0], ecx
mov edx, dword [ebp - 0x2eb0]
sub edx, 0xc8
mov dword [ebp - 0x2eb0], edx
cmp dword [ebp - 0x2eb0], 0x69
ja case.0x407b09.7
mov eax, dword [ebp - 0x2eb0]
movzx ecx, byte [eax + 0x407d24]
jmp dword [ecx*4 + 0x407d1c]
jmp 0x407b30
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp + 8]
push eax
push 0x432ca8
lea ecx, [ebp - 0x10]
push ecx
call fcn.00401e00
add esp, 0x10
jmp 0x407c66
push 0
push 0x80
push 2
call fcn.00401920
mov ecx, eax
call fcn.004030a0
push eax
push 1
push 0x40000000
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x2ea0], eax
cmp dword [ebp - 0x2ea0], 0xffffffff
jne 0x407b87
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [ebp + 0xc]
push eax
push 0x432cb0
lea ecx, [ebp - 0x10]
push ecx
call fcn.00401e00
add esp, 0x10
jmp 0x407c66
mov dword [ebp - 0x1e98], 0
mov dword [ebp - 0x2ea4], 0
push 0x1000
lea edx, [ebp - 0x2e9c]
push edx
lea ecx, [ebp - 0x1e94]
call fcn.00416960
mov dword [ebp - 0x1e98], eax
mov eax, dword [ebp - 0x1e98]
mov dword [ebp - 0x2ea4], eax
cmp dword [ebp - 0x1e98], 0
jge 0x407bdf
mov ecx, dword [ebp - 0x2ea0]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x407c66
push 0
lea edx, [ebp - 0x2ea4]
push edx
mov eax, dword [ebp - 0x1e98]
push eax
lea ecx, [ebp - 0x2e9c]
push ecx
mov edx, dword [ebp - 0x2ea0]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebp - 0x1e98], 0
jg 0x407b9b
mov eax, dword [ebp - 0x2ea0]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x1e94]
call fcn.00416a00
mov dword [ebp - 0x2ea8], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call fcn.00401900
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1264]
call fcn.00401ae0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1e94]
call fcn.00415e90
mov eax, dword [ebp - 0x2ea8]
jmp 0x407d01
lea ecx, [ebp - 0x1e94]
call fcn.00416a00
lea ecx, [ebp - 0x10]
call fcn.0040c520
movzx ecx, al
test ecx, ecx
je 0x407c95
mov edx, dword [ebp + 8]
push edx
push 0x432cb8
lea eax, [ebp - 0x10]
push eax
call fcn.00401e00
add esp, 0xc
cmp dword [ebp + 0x10], 0
je 0x407cc4
cmp dword [ebp + 0x14], 0
jbe 0x407cc4
mov ecx, dword [ebp + 0x14]
push ecx
lea ecx, [ebp - 0x10]
call fcn.0040d820
push eax
mov edx, dword [ebp + 0x10]
push edx
call fcn.004031b0
add esp, 0xc
mov eax, dword [ebp + 0x10]
add eax, dword [ebp + 0x14]
mov byte [eax - 1], 0
mov dword [ebp - 0x2eac], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call fcn.00401900
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1264]
call fcn.00401ae0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1e94]
call fcn.00415e90
mov eax, dword [ebp - 0x2eac]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.0041f2bc
mov esp, ebp
pop ebp
ret