Function at 0x606d6c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
push 8
push dword [ebp + 0x10]
call fcn.00606c5c
mov dword [ebp - 4], eax
push dword [ebp - 4]
call fcn.00606c7c
cwde
mov dword [ebp - 0x18], eax
mov eax, dword [0xa826fc]
cmp dword [ebp - 0x18], eax
jne 0x606dfb
cmp dword [0xa826f8], 0
je 0x606dfb
push 4
push dword [ebp - 4]
call fcn.00606c5c
mov dword [ebp - 0x24], eax
push dword [0xa826fc]
push dword [ebp - 0x24]
push dword [0xa826f8]
call fcn.00606c9c
test eax, eax
je 0x606dfb
mov eax, 1
jmp 0x606e00
mov eax, 0
test eax, eax
je 0x606fec
cmp dword [0xa82738], 0
je 0x606e39
mov ebx, dword [ebp + 0x14]
mov dword [ebx], 0
mov dword [ebx + 4], 1
mov eax, dword [0xa82738]
mov ebx, dword [ebp + 8]
mov dword [ebx], eax
mov eax, 0
jmp 0x607019
mov eax, dword [0xa82700]
mov dword [ebp - 8], eax
mov dword [0xa82700], 0
mov dword [ebp - 0x14], esp
push 0
push 2
push 2
push 0
push 0
push 0x40000000
push dword [0xa8272c]
xor eax, eax
call dword [sym.imp.kernel32.dll_CreateFileA]
nop
nop
cmp dword [ebp - 0x14], esp
je 0x606e98
push 0x23f
push 0x436a935
push 6
call fcn.00645a6f
add esp, 0xc
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
mov dword [0xa82700], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x606f22
mov dword [ebp - 0x14], esp
push 0
mov eax, 0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
push dword [0xa82734]
push dword [0xa82730]
push dword [ebp - 0xc]
xor eax, eax
call dword [sym.imp.kernel32.dll_WriteFile]
nop
nop
cmp dword [ebp - 0x14], esp
je 0x606ef6
push 0x2d7
push 0x436a935
push 6
call fcn.00645a6f
add esp, 0xc
mov dword [ebp - 0x14], esp
push dword [ebp - 0xc]
xor eax, eax
call dword [0xa82948]
nop
nop
cmp dword [ebp - 0x14], esp
je 0x606f22
push 0x311
push 0x436a935
push 6
call fcn.00645a6f
add esp, 0xc
mov ebx, dword [0xa82708]
add ebx, 4
mov dword [ebp - 0x14], ebx
push 0x80000301
push 0
push 0xf0089
push 0x80000301
push 0
push dword [ebp + 0xc]
push 2
mov ebx, 0xc8
call fcn.0064aa60
add esp, 0x1c
mov dword [ebp - 0x18], eax
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 0x18]
push dword [ebp + 8]
mov ebx, dword [ebp - 0x14]
push dword [ebx]
call fcn.00607020
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x606fe4
mov dword [ebp - 0x14], esp
push 0xd
push 4
mov eax, 1
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
mov edx, 0
mov eax, 0
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edx
lea eax, [ebp - 0x20]
push eax
mov ebx, dword [ebp + 8]
push dword [ebx]
xor eax, eax
call dword [0xa82954]
nop
nop
cmp dword [ebp - 0x14], esp
je 0x606fda
push 0x3f9
push 0x436a935
push 6
call fcn.00645a6f
add esp, 0xc
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
mov dword [0xa82738], eax
mov eax, dword [ebp - 0x10]
jmp 0x607019
mov ebx, dword [0xa82708]
add ebx, 4
mov dword [ebp - 0x14], ebx
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
mov ebx, dword [ebp - 0x14]
push dword [ebx]
call fcn.00607020
jmp 0x607019
mov esp, ebp
pop ebp
ret 0x18