Function at 0x402c10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, eax
mov eax, 0x1010
sub esp, 0x10c
call fcn.004097d8
sub esp, eax
mov eax, dword [0x412498]
lea esi, [esp + 0x2b]
and esi, 0xfffffff0
test eax, eax
jne 0x402cb0
mov eax, dword [0x412064]
test eax, eax
je 0x402c4e
mov eax, dword [ebx]
cmp byte [eax], 0
jne 0x402f80
call sub.cygwin1.dll___getreent
mov eax, dword [eax + 0xc]
mov dword [esp + 8], 0x2b
xor edi, edi
mov dword [esp + 4], 1
mov dword [esp], str.Give_your_local_XMODEM_receive_command_now.
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
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
mov edi, dword [0x4144d0]
test edi, edi
je 0x402f20
mov ecx, dword [0x41204c]
mov edx, dword [ebx]
test ecx, ecx
movzx eax, byte [edx]
je 0x402d10
test al, al
je 0x402d10
xor edi, edi
jmp 0x402ce3
cmp al, 0x2e
je 0x402d41
add edx, 1
movzx eax, byte [edx]
test al, al
je 0x402cf3
cmp al, 0x2f
jne 0x402cd5
mov edi, edx
add edx, 1
movzx eax, byte [edx]
test al, al
jne 0x402ce3
test edi, edi
je 0x402d0b
lea eax, [edi + 1]
mov dword [esp], eax
call sub.cygwin1.dll_strlen
cmp eax, 8
ja 0x402fe0
mov edx, dword [ebx]
movzx eax, byte [edx]
mov edi, dword [0x412054]
mov ecx, 0x4124c0
jmp 0x402d25
movzx eax, byte [edx]
mov ecx, esi
test al, al
je 0x402d50
add edx, 1
cmp al, 0x2f
lea esi, [ecx + 1]
mov byte [ecx], al
jne 0x402d20
test edi, edi
mov eax, 0x4124c0
cmove esi, eax
jmp 0x402d20
mov byte [edx], 0x2f
mov edi, edx
jmp 0x402cd9
lea edi, [ecx + 1]
mov byte [ecx], 0
cmp edi, 0x4144c0
mov dword [ebp - 0xec], edi
mov eax, edi
jae 0x402d7e
lea esi, [esi]
lea edi, [edi]
add eax, 1
mov byte [eax - 1], 0
cmp eax, 0x4144c0
jne 0x402d70
mov eax, dword [0x412058]
test eax, eax
je 0x403065
mov edi, dword [0x412064]
test edi, edi
jne 0x403040
mov esi, dword [0x4144cc]
mov edi, dword [0x412460]
mov eax, dword [ebp - 0xb0]
mov edx, dword [ebp - 0xac]
lea ecx, [esi - 1]
sub edi, eax
test ecx, ecx
mov dword [0x412460], edi
mov dword [0x4144cc], ecx
jle 0x402e12
test edi, edi
js 0x402e12
cmp byte [0x41253d], 0
je 0x402e25
mov edi, dword [0x4144d0]
mov dword [0x40c028], 0x400
test edi, edi
jne 0x402e4c
xor eax, eax
mov edx, pe_nt_image_headers32
call fcn.004027d0
cmp eax, 0xffffffff
jne 0x402ca0
mov dword [esp], str.wcputsec_failed
call fcn.004044a0
mov edi, 0xffffffff
jmp 0x402ca0
cmp byte [0x41253d], 0
mov dword [0x412460], 0
jne 0x402dd3
add eax, 0x7f
mov edi, dword [0x4144d0]
adc edx, 0
mov esi, eax
shrd esi, edx, 7
shrd eax, edx, 0xf
mov ecx, esi
test edi, edi
mov byte [0x41253f], cl
mov byte [0x41253e], al
je 0x402de7
mov esi, dword [ebp - 0xec]
lea edi, [ebp - 0xdc]
mov dword [esp], esi
sub esi, 0x4124bf
call sub.cygwin1.dll_strlen
add eax, esi
mov dword [ebp - 0xec], eax
movzx eax, byte [0x41247c]
mov edx, dword [0x412470]
test edx, edx
mov byte [0x414583], al
movzx eax, byte [0x412492]
mov byte [0x414582], al
je 0x402e98
or eax, 0xffffff80
mov byte [0x414582], al
movzx eax, byte [0x412493]
mov dword [esp + 4], 0x414580
mov dword [esp], 4
mov byte [0x414580], 0
mov byte [0x414581], al
call fcn.00405050
mov esi, dword [0x414574]
mov eax, dword [ebp - 0xec]
mov dword [esp + 8], 0x6b
mov dword [esp], 0x4124c0
test esi, esi
mov dword [esp + 4], eax
je 0x403101
call fcn.00405b00
mov dword [esp + 8], edi
mov dword [esp + 4], 1
mov dword [esp], 0x4145c4
call fcn.00406f50
add eax, 2
cmp eax, 0x12
ja case.0x402f0f.2
jmp dword [eax*4 + 0x40e1fc]
mov byte [0x412450], 0
xor edi, edi
add edi, 1
sub dword [0x4120d8], 1
js 0x403394
mov eax, dword [0x4144dc]
lea edx, [eax + 1]
mov dword [0x4144dc], edx
movzx eax, byte [eax]
cmp eax, 0x18
je 0x403356
jle 0x403110
cmp eax, 0x43
je 0x403150
cmp eax, 0x47
je 0x403127
cmp eax, 0x2a
je 0x4032ee
mov byte [0x412450], al
jmp 0x402f29
mov eax, dword [0x412464]
mov dword [esp], eax
call sub.cygwin1.dll_fileno
lea edx, [ebp - 0xd8]
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.cygwin1.dll__fstat64
cmp eax, 0xffffffff
je 0x402c4e
mov esi, dword [ebp - 0xb0]
mov edi, dword [ebp - 0xac]
mov ebx, dword [ebx]
call sub.cygwin1.dll___getreent
shrd esi, edi, 7
mov dword [esp + 8], ebx
mov dword [esp + 4], str.Sending__s___ld_blocks:
mov dword [esp + 0xc], esi
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_fprintf
jmp 0x402c4e
lea eax, [edi + 9]
mov dword [esp], esi
add edi, 0xa
mov dword [esp + 4], eax
call sub.cygwin1.dll_stpcpy
sub eax, esi
mov byte [edi - 1], 0x2e
mov dword [esp + 4], esi
add eax, 1
mov dword [esp], edi
mov dword [esp + 8], eax
call sub.cygwin1.dll_memcpy
jmp 0x402d0b
sub dword [0x4120d8], 1
js 0x4033a5
mov eax, dword [0x4144dc]
lea edx, [eax + 1]
mov dword [0x4144dc], edx
movzx eax, byte [eax]
test eax, eax
jle case.0x402f0f.2
cmp eax, 0x2a
jne case.0x402f0f.1
jmp 0x402eeb
call sub.cygwin1.dll___getreent
mov dword [esp + 8], 0x4124c0
mov dword [esp + 4], str.Sending:__s_r_n
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_fprintf
jmp 0x402d99
call sub.cygwin1.dll___getreent
mov edx, dword [0x412464]
cmp dword [eax + 4], edx
je 0x402d8b
mov eax, dword [ebx]
cmp byte [eax], 0
je 0x402d8b
mov dword [esp], edx
call sub.cygwin1.dll_fileno
lea edx, [ebp - 0xd8]
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.cygwin1.dll__fstat64
cmp eax, 0xffffffff
je 0x402d8b
mov eax, dword [0x4120bc]
mov edx, dword [0x412460]
mov dword [esp + 4], str._lu__lo__o_0__d__ld
test eax, eax
mov eax, 0
cmove eax, dword [ebp - 0xc8]
mov dword [esp + 0x18], edx
mov edx, dword [0x4144cc]
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0xa0]
mov dword [esp + 0x14], edx
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0xb0]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0xec]
mov dword [esp], eax
call sub.cygwin1.dll_sprintf
jmp 0x402d8b
call fcn.004057c0
jmp 0x402eeb
cmp eax, 0xfffffffe
je 0x40330a
cmp eax, 0x15
je 0x402cbe
jmp 0x402f74
mov eax, dword [0x4120b0]
mov dword [esp + 4], 2
mov dword [esp], eax
call fcn.00404990
mov dword [0x412494], 1
mov dword [0x40c028], 0x400
mov byte [0x412474], 1
jmp 0x402cbe
mov eax, dword [ebp - 0xdc]
test eax, eax
jne 0x4033b6
mov dword [ebx + 0x10], eax
mov dword [0x4144c0], eax
sub eax, 1
mov dword [0x412478], eax
mov eax, ebx
call fcn.00401eb0
mov edi, eax
jmp 0x402ca0
mov eax, dword [0x40c034]
mov edx, 0xffffffff
test eax, eax
js 0x403226
mov eax, dword [ebp - 0xdc]
test eax, eax
je 0x4033fb
sub eax, 1
mov dword [ebp - 0xdc], eax
mov esi, 0xffffffff
jmp 0x4031e2
xor eax, esi
shr esi, 8
movzx eax, al
xor esi, dword [eax*4 + 0x40c040]
mov eax, dword [ebp - 0xdc]
lea ecx, [eax - 1]
test eax, eax
mov dword [ebp - 0xdc], ecx
je 0x4031f4
mov eax, dword [0x412464]
mov dword [esp], eax
call sub.cygwin1.dll_getc
cmp eax, 0xffffffff
jne 0x4031c0
not esi
mov edx, esi
mov eax, dword [0x412464]
mov dword [ebp - 0xf0], edx
and word [eax + 0xc], 0xff9f
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.cygwin1.dll_fseek
mov edx, dword [ebp - 0xf0]
mov dword [esp], edx
call fcn.00408cc0
mov dword [esp + 4], 0x414580
mov dword [esp], 0xd
call fcn.00405050
jmp 0x402eeb
mov eax, dword [0x412464]
test eax, eax
je 0x403258
mov dword [esp], eax
call sub.cygwin1.dll_fclose
mov dword [esp], str.receiver_skipped
mov edi, 5
call fcn.004044a0
jmp 0x402ca0
mov edx, dword [0x412064]
mov edi, 0xffffffff
test edx, edx
je 0x402ca0
call sub.cygwin1.dll___getreent
mov eax, dword [eax + 0xc]
mov dword [esp + 8], 8
mov dword [esp + 4], 1
mov dword [esp], str.got_ZCAN
mov dword [esp + 0xc], eax
call sub.cygwin1.dll_fwrite
jmp 0x402ca0
mov ecx, dword [0x412064]
mov edi, 0xffffffff
test ecx, ecx
je 0x402ca0
call sub.cygwin1.dll___getreent
mov eax, dword [eax + 0xc]
mov dword [esp + 8], 0xb
mov dword [esp + 4], 1
mov dword [esp], str.got_ZRQINIT
mov dword [esp + 0xc], eax
call sub.cygwin1.dll_fwrite
jmp 0x402ca0
call fcn.00401770
test eax, eax
jne 0x403442
mov dword [0x412058], 0
jmp 0x402cbe
cmp edi, 3
je 0x403436
mov eax, dword [0x4120ac]
cmp eax, 1
jle 0x4033ed
cmp eax, 3
jg 0x402f29
mov dword [esp], 0
call fcn.00408cc0
mov dword [esp + 4], 0x414580
mov dword [esp], 0
call fcn.00405650
add dword [0x4120ac], 1
jmp 0x402f29
sub dword [0x4120d8], 1
js 0x403458
mov eax, dword [0x4144dc]
lea edx, [eax + 1]
mov dword [0x4144dc], edx
movzx eax, byte [eax]
cmp eax, 0x18
jne 0x402f74
cmp byte [0x412450], 0x18
je 0x403442
mov eax, 0x18
jmp 0x402f74
mov dword [esp], 0x64
call fcn.00404510
jmp 0x402f4a
mov dword [esp], 0x32
call fcn.00404510
jmp 0x40302e
mov dword [esp + 4], eax
mov eax, dword [0x412464]
mov dword [esp + 8], 0
mov dword [esp], eax
call sub.cygwin1.dll_fseek
test eax, eax
jne 0x403478
mov eax, dword [ebp - 0xdc]
test eax, eax
je 0x40316a
mov dword [ebx + 0x18], eax
jmp 0x40316a
cmp edi, 1
jne 0x40332a
jmp 0x402f29
mov eax, dword [0x412464]
mov dword [esp], eax
call sub.cygwin1.dll_fileno
lea ecx, [ebp - 0x78]
mov dword [esp], eax
mov dword [esp + 4], ecx
call sub.cygwin1.dll__fstat64
test eax, eax
jne 0x403469
mov eax, dword [ebp - 0x50]
lea edx, [eax - 1]
mov dword [ebp - 0xdc], edx
xor edx, edx
test eax, eax
jne 0x4031b1
jmp 0x4031f8
mov dword [esp], str.Timeout_on_pathname
call fcn.00404390
mov dword [esp], str.getnak_failed
mov edi, 0xffffffff
call fcn.004044a0
jmp 0x402ca0
mov dword [esp], 0x14
call fcn.00404510
jmp 0x403374
mov dword [ebp - 0xdc], 0xfffffffe
jmp 0x4031b1
call sub.cygwin1.dll___errno
mov eax, dword [eax]
or edi, 0xffffffff
mov dword [esp], eax
call sub.cygwin1.dll_strerror
mov dword [esp], str.fseek_failed:__s
mov dword [esp + 4], eax
call fcn.004044a0
jmp 0x402ca0