Function at 0x403fb0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov edi, edx
sub esp, 0x13c
cmp dword [0x41201c], 1
mov dword [ebp - 0x12c], eax
mov byte [0x412474], 0
mov dword [0x412480], 1
mov dword [0x4144c0], 0xffffffff
je 0x404189
mov eax, dword [ebp - 0x12c]
xor ebx, ebx
test eax, eax
jg 0x40400b
jmp 0x404030
add ebx, 1
cmp ebx, dword [ebp - 0x12c]
je 0x404030
mov eax, dword [edi + ebx*4]
xor edx, edx
mov dword [0x412458], 0
call fcn.004034a0
cmp eax, 0xffffffff
mov esi, eax
jne 0x404000
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
test byte [0x412030], 2
jne 0x4040d3
cmp dword [0x412044], 0
mov dword [0x412458], 0
je 0x40427a
mov esi, dword [0x4144d0]
test esi, esi
jne 0x40417d
cmp dword [0x412498], 0
je 0x404026
mov eax, 0x1010
call fcn.004097d8
sub esp, eax
mov dword [ebp - 0x114], 0
mov dword [ebp - 0x110], 0
lea eax, [esp + 0x1f]
mov dword [ebp - 0x10c], 0
mov dword [ebp - 0x108], 0
mov dword [ebp - 0x104], 0
mov dword [ebp - 0x100], 0
and eax, 0xfffffff0
mov dword [ebp - 0x118], eax
mov byte [eax], 0
lea eax, [ebp - 0x118]
call fcn.00402c10
jmp 0x404026
cmp dword [0x41202c], 0
je 0x40403d
mov dword [esp], 0
lea ebx, [ebp - 0x118]
call sub.cygwin1.dll_time
mov dword [ebp - 0x11c], eax
lea eax, [ebp - 0x11c]
mov dword [esp], eax
call sub.cygwin1.dll_localtime
mov dword [esp + 8], str._H:_M:_S
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0x3b
mov dword [esp], ebx
call sub.cygwin1.dll_strftime
cmp dword [0x412064], 0
jne 0x404231
xor eax, eax
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
mov eax, dword [sym.imp.cygwin1.dll__timezone]
mov esi, 0x3c
mov dword [esp + 4], str._ld_r_n
not ecx
cdq
idiv esi
mov dword [esp + 8], eax
lea eax, [ebx + ecx - 1]
mov dword [esp], eax
call sub.cygwin1.dll_sprintf
cmp dword [0x412064], 0
jne 0x4041fe
mov edx, ebx
mov eax, str.__time_.t
call fcn.00403c30
jmp 0x40403d
call fcn.00401ce0
xor esi, esi
jmp 0x404026
lea esi, [ebp - 0x118]
mov dword [esp], esi
call fcn.00408d60
mov edx, esi
mov ebx, eax
mov eax, str.__tcp_.t
call fcn.00403c30
test eax, eax
jne 0x4041e0
mov dword [esp], ebx
call fcn.00408f60
mov dword [esp + 4], 0
mov dword [esp], eax
mov dword [0x40c014], eax
call sub.cygwin1.dll_dup2
mov eax, dword [0x40c014]
mov dword [esp + 4], 1
mov dword [esp], eax
call sub.cygwin1.dll_dup2
jmp 0x403fec
mov dword [esp + 8], str.tcp_protocol_init_failed_r_n
mov dword [esp + 4], 0
mov dword [esp], 1
call fcn.00409570
jmp 0x4041a9
mov eax, dword [sym.imp.cygwin1.dll__timezone]
cdq
idiv esi
mov esi, eax
call sub.cygwin1.dll___getreent
mov dword [esp + 0xc], esi
mov dword [esp + 8], str.timezone
mov dword [esp + 4], str.___s__ld__r_n
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_fprintf
jmp 0x40416c
call sub.cygwin1.dll___getreent
mov eax, dword [eax + 0xc]
mov dword [esp + 8], 2
mov dword [esp + 4], 1
mov dword [esp], 0x40def0
mov dword [esp + 0xc], eax
call sub.cygwin1.dll_fwrite
call sub.cygwin1.dll___getreent
mov dword [esp + 8], ebx
mov dword [esp + 4], str.Answering_TIMESYNC_at__s
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_fprintf
jmp 0x40412f
mov dword [esp], 1
or esi, 0xffffffff
call fcn.004092a0
call sub.cygwin1.dll___getreent
mov eax, dword [eax + 0xc]
mov dword [esp + 8], 2
mov dword [esp + 4], 1
mov dword [esp], 0x40def0
mov dword [esp + 0xc], eax
call sub.cygwin1.dll_fwrite
call sub.cygwin1.dll___getreent
mov eax, dword [eax + 0xc]
mov dword [esp + 8], 0x1f
mov dword [esp + 4], 1
mov dword [esp], str.Cant_open_any_requested_files.
mov dword [esp + 0xc], eax
call sub.cygwin1.dll_fwrite
call sub.cygwin1.dll___getreent
mov eax, dword [eax + 0xc]
mov dword [esp + 8], 2
mov dword [esp + 4], 1
mov dword [esp], 0x40def0
mov dword [esp + 0xc], eax
call sub.cygwin1.dll_fwrite
jmp 0x404026