Function at 0x40724d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 1
dec ecx
mov dword [esp + ecx*4], 0xfffa5a5a
jne 0x407256
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov bl, byte [edi]
mov byte [ebp - 1], bl
cmp dword [0x420f98], 0
je 0x4072e0
mov edi, dword [ebp + 0x10]
cmp edi, 1
je 0x407281
cmp edi, 2
jne 0x4072e0
cmp dword [0x420f7c], 0
jne 0x4072e0
cmp dword [0x420f6c], 0
je 0x40729e
mov edi, dword [ebp + 0x10]
cmp dword [0x420f60], edi
jne 0x4072a7
cmp dword [0x420f78], 0xffffffff
jne 0x4072e0
push dword [0x420f98]
push dword [0x420f98]
push 0xb1
push dword [0x420f2c]
call sub.USER32.DLL_SendMessageA
push 0x4363a6
push 0
push 0xc2
push dword [0x420f2c]
call sub.USER32.DLL_SendMessageA
inc dword [0x420f98]
mov edi, dword [ebp + 0x10]
cmp edi, 1
je 0x4072ff
cmp edi, 2
je 0x407435
cmp edi, 3
je 0x4074f4
jmp 0x40755c
push dword [0x420f98]
push dword [0x420f98]
push 0xb1
push dword [0x420f2c]
call sub.USER32.DLL_SendMessageA
push dword [0x420f8c]
push dword [0x420f2c]
call fcn.00407129
add esp, 8
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040717b
add esp, 8
jmp 0x407412
mov edi, dword [ebp + 8]
mov esi, edi
add esi, 1
mov dword [ebp + 8], esi
mov bl, byte [edi]
mov byte [ebp - 1], bl
cmp dword [0x4245bc], 0
je 0x40736a
movzx ebx, byte [ebp - 1]
movsx ebx, byte [ebx + 0x4242a8]
mov byte [ebp - 1], bl
cmp dword [0x45f4e4], 0
jle 0x4073cc
cmp dword [0x4359d0], 0
je 0x4073a9
cmp dword [0x45f4cc], 0
je 0x407398
lea edi, [ebp - 1]
push edi
push 1
call fcn.00405b3d
add esp, 8
cmp eax, 0
jne 0x407412
push str._nTimeout_
push 0
call fcn.00406df0
add esp, 8
jmp 0x407412
movsx ebx, byte [ebp - 1]
push ebx
call fcn.004051e1
add esp, 4
cmp eax, 1
je 0x407412
push str._nTimeout_CTS_
push 0
call fcn.00406df0
add esp, 8
jmp 0x407412
cmp dword [0x4254ac], 0
jl 0x407412
push 0
mov edi, dword [0x4254ac]
shl edi, 7
lea edi, [edi + 0x429128]
push edi
call sub.USER32.DLL_FindWindowA
mov dword [0x420f18], eax
cmp eax, 0
je 0x407412
push dword [0x420f28]
movzx ebx, byte [ebp - 1]
push ebx
push 0x401
push dword [0x420f18]
call sub.USER32.DLL_PostMessageA
mov edi, dword [ebp + 0xc]
mov esi, edi
sub esi, 1
mov dword [ebp + 0xc], esi
cmp edi, 0
jne 0x407342
mov dword [0x420f60], 1
jmp 0x40755c
mov edi, dword [0x420f98]
add edi, 1
push edi
push dword [0x420f98]
push 0xb1
push dword [0x420f2c]
call sub.USER32.DLL_SendMessageA
push dword [0x420f90]
push dword [0x420f2c]
call fcn.00407129
add esp, 8
cmp dword [0x42429c], 0
je 0x407488
push dword [0x42429c]
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
call sub.CRTDLL.DLL_fwrite
add esp, 0x10
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040717b
add esp, 8
push dword [0x420f98]
push dword [0x420f98]
push 0xb1
push dword [0x420f2c]
call sub.USER32.DLL_SendMessageA
mov dword [0x420f60], 2
cmp dword [0x431a64], 0
je 0x40755c
jmp 0x4074e2
mov edi, dword [ebp + 8]
mov esi, edi
add esi, 1
mov dword [ebp + 8], esi
movzx ebx, byte [edi]
push ebx
call fcn.00408e69
add esp, 4
mov edi, dword [ebp + 0xc]
mov esi, edi
sub esi, 1
mov dword [ebp + 0xc], esi
cmp edi, 0
jne 0x4074cb
jmp 0x40755c
mov edi, dword [0x420f98]
add edi, 1
push edi
push dword [0x420f98]
push 0xb1
push dword [0x420f2c]
call sub.USER32.DLL_SendMessageA
push dword [0x420f94]
push dword [0x420f2c]
call fcn.00407129
add esp, 8
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040717b
add esp, 8
push dword [0x420f98]
push dword [0x420f98]
push 0xb1
push dword [0x420f2c]
call sub.USER32.DLL_SendMessageA
mov dword [0x420f60], 3
push 0
push 7
push 0x115
push dword [0x420f2c]
call sub.USER32.DLL_SendMessageA
mov edi, dword [0x420f74]
mov dword [0x420f78], edi
pop edi
pop esi
pop ebx
leave
ret