Function at 0x4034a0
Capabilities:
Query environment variable
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, edx
sub esp, 0xbc
mov esi, dword [0x412060]
mov dword [ebp - 0xb0], eax
test esi, esi
je 0x403518
mov dword [esp + 4], 0x40e248
mov dword [esp], eax
mov esi, eax
call sub.cygwin1.dll_strstr
test eax, eax
je 0x403518
mov dword [esp], 1
call fcn.004092a0
call sub.cygwin1.dll___getreent
mov eax, dword [eax + 0xc]
mov dword [esp], 0xd
mov dword [esp + 4], eax
call sub.cygwin1.dll_putc
mov dword [esp + 0xc], esi
mov dword [esp + 8], str.security_violation:_not_allowed_to_upload_from__s
mov dword [esp + 4], 0
mov dword [esp], 1
call fcn.00409570
mov esi, dword [ebp - 0xb0]
mov edi, 0x40e27e
mov ecx, 2
repe cmpsb byte [esi], byte es:[edi]
jne 0x403571
mov dword [esp], str.ONAME
call sub.cygwin1.dll_getenv
mov ecx, eax
mov eax, 0x1010
call fcn.004097d8
sub esp, eax
lea esi, [esp + 0x1f]
and esi, 0xfffffff0
test ecx, ecx
je 0x4038b7
mov dword [esp + 4], ecx
mov dword [esp], esi
call sub.cygwin1.dll_strcpy
call sub.cygwin1.dll___getreent
mov edi, dword [eax + 4]
mov dword [0x412464], edi
jmp 0x4035bb
mov eax, dword [ebp - 0xb0]
mov dword [esp + 4], 0x40e28f
mov dword [esp], eax
call sub.cygwin1.dll__fopen64
test eax, eax
mov edi, eax
mov dword [0x412464], eax
je 0x403952
mov eax, 0x1010
call fcn.004097d8
sub esp, eax
mov eax, dword [ebp - 0xb0]
lea esi, [esp + 0x1f]
and esi, 0xfffffff0
mov dword [esp + 4], eax
mov dword [esp], esi
call sub.cygwin1.dll_strcpy
mov dword [esp], edi
lea edi, [ebp - 0x78]
call sub.cygwin1.dll_fileno
mov dword [esp + 4], edi
mov dword [esp], eax
call sub.cygwin1.dll__fstat64
cmp eax, 0xffffffff
je 0x4037a4
cmp dword [0x40c030], 0xffffffff
mov eax, dword [0x412090]
je 0x403710
test eax, eax
mov edx, dword [0x41208c]
je 0x403743
mov dword [esp + 4], eax
mov eax, dword [0x412464]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0
mov dword [esp], eax
call sub.cygwin1.dll_setvbuf
mov eax, dword [0x412464]
mov dword [0x412068], 0
mov dword [esp], eax
call sub.cygwin1.dll_fileno
mov dword [esp + 4], edi
mov dword [esp], eax
call sub.cygwin1.dll__fstat64
mov eax, dword [ebp - 0x68]
mov edx, eax
mov ecx, eax
and edx, 0xd000
and ecx, 0xf000
cmp edx, 0x4000
je 0x403990
test ebx, ebx
mov dword [ebp - 0x90], eax
mov eax, 0x77359400
cmove ebx, esi
cmp ecx, 0x1000
cmovne eax, dword [ebp - 0x50]
mov edx, dword [ebp - 0x40]
mov dword [esp + 4], 0
mov dword [esp], 1
mov dword [ebp - 0x98], ebx
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x94], edx
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x7c], 0
call fcn.00404310
fstp st(0)
lea eax, [ebp - 0x98]
add dword [0x412044], 1
call fcn.00402c10
cmp eax, 0xffffffff
je 0x403703
cmp eax, 5
jne 0x4037c0
mov dword [esp + 0xc], esi
mov dword [esp + 8], str.skipped:__s
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.00409570
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
test eax, eax
je 0x403bdc
mov edx, dword [0x41208c]
cmp dword [ebp - 0x50], edx
jbe 0x4035fb
mov dword [esp], eax
call sub.cygwin1.dll_free
mov dword [0x412090], 0
mov dword [0x41208c], 0
mov eax, dword [0x40c030]
test eax, eax
je 0x403618
cmp eax, 0xffffffff
je 0x403bdc
lea edx, [eax + 0xfff]
and edx, 0xfffff000
mov dword [esp], edx
mov dword [0x41208c], edx
mov dword [ebp - 0xb8], edx
call sub.cygwin1.dll_malloc
test eax, eax
mov dword [0x412090], eax
mov edx, dword [ebp - 0xb8]
jne 0x4035fb
mov dword [esp], 0x40e2a0
call fcn.00404410
mov dword [esp], 1
call sub.cygwin1.dll_exit
mov dword [ebp - 0x50], 0x100000
mov dword [ebp - 0x4c], 0
jmp 0x4035db
mov ebx, dword [0x4144d0]
test ebx, ebx
je 0x4038d5
mov eax, dword [0x412050]
test eax, eax
je 0x4037e5
mov eax, dword [ebp - 0xb0]
mov dword [esp], eax
call sub.cygwin1.dll_unlink
cmp dword [0x412064], 1
jle 0x4038ad
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.00404310
fldz
fxch st(1)
fucomi st(1)
fstp st(1)
jp 0x40381a
jne 0x40381a
fstp st(0)
fld dword [0x40f014]
fstp qword [ebp - 0xb0]
mov ebx, dword [ebp - 0x88]
call sub.cygwin1.dll___getreent
mov eax, dword [eax + 0xc]
mov dword [esp], 0xd
mov dword [esp + 4], eax
call sub.cygwin1.dll_putc
cmp dword [0x412064], 1
jle 0x4038ad
mov esi, dword [ebp - 0x88]
call sub.cygwin1.dll___getreent
fnstcw word [ebp - 0xa2]
mov dword [ebp - 0xb8], ebx
mov dword [ebp - 0xb4], 0
fild qword [ebp - 0xb8]
movzx edx, word [ebp - 0xa2]
mov dword [esp + 8], esi
mov dword [esp + 4], str.Bytes_Sent:_7ld___BPS:__8ld_________________________r_n
fld qword [ebp - 0xb0]
fdivp st(1)
mov dh, 0xc
mov word [ebp - 0xa4], dx
fldcw word [ebp - 0xa4]
fistp dword [esp + 0xc]
fldcw word [ebp - 0xa2]
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_fprintf
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
call sub.cygwin1.dll_getpid
mov dword [esp + 4], str.s_lu.lsz
mov dword [esp + 8], eax
mov dword [esp], esi
call sub.cygwin1.dll_sprintf
jmp 0x403561
mov eax, dword [ebp - 0x8c]
mov dword [esp], str.wctx:file_length_ld
mov esi, dword [0x40c028]
mov dword [0x412480], 1
mov dword [esp + 4], eax
call fcn.004044a0
jmp 0x40393a
mov eax, dword [0x4144dc]
lea edx, [eax + 1]
mov dword [0x4144dc], edx
movzx eax, byte [eax]
cmp eax, 0x15
je 0x4039d8
mov edx, eax
and edx, 0xfffffffb
cmp edx, 0x43
je 0x4039c7
cmp eax, 0x18
je 0x403b33
cmp eax, 0xfffffffe
je 0x403b33
sub dword [0x4120d8], 1
jns 0x403900
mov eax, dword [0x40c640]
mov dword [esp], eax
call fcn.00404510
jmp 0x403911
call sub.cygwin1.dll___errno
mov ecx, dword [ebp - 0xb0]
mov dword [esp + 8], str.cannot_open__s
mov dword [esp + 0xc], ecx
mov eax, dword [eax]
mov dword [esp], 0
mov dword [esp + 4], eax
call fcn.00409570
add dword [0x412048], 1
xor eax, eax
jmp 0x403703
mov dword [esp + 0xc], esi
mov dword [esp + 8], str.is_not_a_file:__s
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.00409570
mov eax, dword [0x412464]
mov dword [esp], eax
call sub.cygwin1.dll_fclose
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
cmp eax, 0x43
je 0x4039d1
cmp eax, 0x47
jne 0x4039d8
mov byte [0x412474], 1
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0xb8], 0
nop
lea esi, [esi]
add eax, 0x380
cmp dword [ebp - 0x8c], eax
mov ecx, dword [0x412058]
mov eax, pe_nt_image_headers32
cmovbe esi, eax
test ecx, ecx
je 0x403af0
mov edx, dword [0x412040]
test edx, edx
je 0x403ac0
mov byte [0x4124c0], 0xa
lea edi, [esi - 1]
mov dword [0x412040], 0
mov ebx, 0x4124c1
jmp 0x403a4a
sub edi, 1
lea ebx, [edx + 1]
mov byte [edx], al
je 0x403a80
mov eax, dword [0x412464]
mov dword [esp], eax
call sub.cygwin1.dll_getc
cmp eax, 0xffffffff
je 0x403ad0
cmp eax, 0xa
mov edx, ebx
jne 0x403a40
sub edi, 1
lea edx, [ebx + 1]
mov byte [ebx], 0xd
jne 0x403a40
mov dword [0x412040], 1
nop
lea esi, [esi]
test esi, esi
je 0x403b52
add dword [ebp - 0xb8], 1
mov edx, esi
mov eax, dword [ebp - 0xb8]
call fcn.004027d0
cmp eax, 0xffffffff
je 0x403b48
mov eax, dword [ebp - 0x88]
add eax, esi
mov dword [ebp - 0x88], eax
jmp 0x4039f0
mov edi, esi
mov ebx, 0x4124c0
jmp 0x403a4a
cmp esi, edi
je 0x403b52
test edi, edi
je 0x403a80
lea edx, [ebx + edi]
nop
lea esi, [esi]
add ebx, 1
mov byte [ebx - 1], 0x1a
cmp ebx, edx
jne 0x403ae0
jmp 0x403a80
mov eax, dword [0x412464]
mov dword [esp], eax
call sub.cygwin1.dll_fileno
mov dword [esp + 8], esi
mov dword [esp + 4], 0x4124c0
mov dword [esp], eax
call sub.cygwin1.dll_read
test eax, eax
je 0x403b52
cmp esi, eax
jbe 0x403a80
lea esi, [esi]
add eax, 1
mov byte [eax + 0x4124bf], 0x1a
cmp eax, esi
jne 0x403b20
jmp 0x403a88
cmp eax, 0x18
jne 0x4039cc
mov dword [esp], str.Receiver_Cancelled
call fcn.00404390
mov eax, 0xffffffff
jmp 0x403703
mov eax, dword [0x412464]
xor ebx, ebx
mov dword [esp], eax
call sub.cygwin1.dll_fclose
jmp 0x403b83
mov eax, dword [0x4144dc]
lea edx, [eax + 1]
mov dword [0x4144dc], edx
cmp byte [eax], 6
setne al
movzx eax, al
test eax, eax
je 0x403bf8
cmp ebx, 0xa
je 0x403c01
mov eax, dword [0x4120b0]
add ebx, 1
mov dword [esp], eax
call fcn.00404ca0
call sub.cygwin1.dll___getreent
mov eax, dword [eax + 8]
mov dword [esp], 4
mov dword [esp + 4], eax
call sub.cygwin1.dll_putc
call sub.cygwin1.dll___getreent
mov eax, dword [eax + 8]
mov dword [esp], eax
call sub.cygwin1.dll_fflush
sub dword [0x4120d8], 1
jns 0x403b63
mov eax, dword [0x40c640]
mov dword [esp], eax
call fcn.00404510
cmp eax, 6
setne al
movzx eax, al
jmp 0x403b7a
cmp dword [ebp - 0x4c], 0
mov eax, dword [ebp - 0x50]
jl 0x403c17
jle 0x403c12
add eax, 0xfff
and eax, 0xfffff000
mov edx, eax
jmp 0x403765
cmp ebx, 0xa
jne 0x4037ce
mov dword [esp], str.No_ACK_on_EOT
call fcn.00404390
jmp 0x403b48
cmp eax, 0
ja 0x403be7
mov edx, 0x4000
jmp 0x403765