Function at 0x408fe4
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov eax, 0x4a1947
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
call fcn.00402783
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40903f
push ebx
call fcn.0040d92b
add esp, 4
push 0x20004
push 0x16010038
push 0x52010010
push 1
mov eax, 1
mov ebx, 0x4754c0
call fcn.0040d943
add esp, 0x10
mov dword [ebp - 0x28], eax
fild dword [ebp - 0x28]
fstp qword [ebp - 0x28]
fld qword [ebp - 0x28]
fsub qword [0x4a0fc7]
fstp qword [ebp - 0x30]
fld qword [ebp - 0x30]
call fcn.0040194b
push eax
lea eax, [ebp - 4]
mov ebx, eax
mov ecx, 0
pop edx
push edx
push ecx
push ebx
mov dword [ebx], ecx
cmp ecx, edx
jg 0x4095e7
push 0x80000301
push 0
push 4
push 0x80000301
push 0
push dword [ebp - 4]
push 0x20004
push 0x16010038
push 0x52010010
push 3
mov eax, 1
mov ebx, 0x4752d0
call fcn.0040d943
add esp, 0x28
mov dword [ebp - 0x20], eax
push 0x4a0f08
push dword [ebp - 0x20]
call fcn.0040155e
add esp, 8
cmp eax, 0
mov eax, 0
sete al
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x409108
push ebx
call fcn.0040d92b
add esp, 4
cmp dword [ebp - 0x24], 0
je 0x4095de
push 0x80000301
push 0
push 3
push 0x80000301
push 0
push dword [ebp - 4]
push 0x20004
push 0x16010038
push 0x52010010
push 3
mov eax, 1
mov ebx, 0x4752d0
call fcn.0040d943
add esp, 0x28
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x409165
push ebx
call fcn.0040d92b
add esp, 4
pop eax
mov dword [ebp - 8], eax
push 0x80000301
push 0
push 0xa
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x409188
mov eax, 0x4a0f08
push eax
push 2
mov ebx, 0x40db40
call fcn.0040d931
add esp, 0x1c
mov dword [ebp - 0x20], eax
push dword [ebp - 0x20]
push str.sh_in_epon_onu_on__in
mov ecx, 2
call fcn.004018ef
add esp, 8
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x4091c6
push ebx
call fcn.0040d92b
add esp, 4
mov eax, dword [ebp - 0x24]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x4091da
push ebx
call fcn.0040d92b
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x4091f1
mov eax, 0x4a0f08
push eax
push 1
mov ebx, 0x40e2f0
call fcn.0040d931
add esp, 0x10
mov dword [ebp - 0x20], eax
push 0x4a1004
push dword [ebp - 0x20]
mov ecx, 2
call fcn.004037c4
add esp, 8
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40922f
push ebx
call fcn.0040d92b
add esp, 4
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x409242
mov eax, 0x4a0f4a
push eax
push 0x10025
push 0x1601003a
push 0x52010010
push 2
mov ebx, 0x40fd50
call fcn.0040d931
add esp, 0x1c
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x409274
push ebx
call fcn.0040d92b
add esp, 4
push 1
mov eax, str.reset
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
call fcn.004029cd
mov ebx, eax
test ebx, ebx
je 0x409296
push ebx
call fcn.0040d92b
add esp, 4
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x4092a6
push ebx
call fcn.0040d92b
add esp, 4
xor ecx, ecx
lea eax, [ebp - 0x10]
mov ebx, eax
inc ecx
push ecx
push ebx
mov dword [ebx], ecx
cmp ecx, 0xc8
jg 0x4093f4
push 0x80000301
push 0
push 0x96
push 1
mov ebx, 0x40fc80
call fcn.0040d931
add esp, 0x10
mov dword [ebp - 0x20], 0
push 0
lea eax, [ebp - 0x20]
push eax
call fcn.004029cd
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x409301
push ebx
call fcn.0040d92b
add esp, 4
mov eax, dword [ebp - 0x24]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x409315
push ebx
call fcn.0040d92b
add esp, 4
pop eax
mov dword [ebp - 8], eax
push connect
push 0
push 0
push 0
push 0
push 0
push reloc.WS2_32.dll_connect
push 0
push str.__More__
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x40934a
mov eax, 0x4a0f08
push eax
push 4
mov ebx, 0x40ddc0
call fcn.0040d931
add esp, 0x34
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
je 0x409397
push reloc.WS2_32.dll_getpeername
push 0
push 0x4a0f9c
push 0x10025
push 0x1601003a
push 0x52010010
push 2
mov ebx, 0x40fd50
call fcn.0040d931
add esp, 0x1c
push connect
push 0
push 0
push 0
push 0
push 0
push reloc.WS2_32.dll_connect
push 0
push 0x4a0fa5
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x4093c8
mov eax, 0x4a0f08
push eax
push 4
mov ebx, 0x40dde0
call fcn.0040d931
add esp, 0x34
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
je 0x4093ed
jmp 0x4093f4
pop ebx
pop ecx
jmp 0x4092ad
add esp, 8
mov eax, dword [ebp - 8]
test eax, eax
je 0x409413
push eax
mov ebx, eax
call fcn.00401884
inc eax
push eax
call fcn.0040d949
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x409424
push ebx
call fcn.0040d92b
add esp, 4
pop eax
mov dword [ebp - 0x18], eax
push 0x20004
push 0x16010038
push 0x52010010
push 1
mov eax, 1
mov ebx, 0x4754c0
call fcn.0040d943
add esp, 0x10
push eax
push dword [ebp - 4]
lea eax, [ebp - 0x1c]
mov ebx, eax
pop ecx
pop edx
push edx
push ecx
push ebx
mov dword [ebx], ecx
cmp ecx, edx
jg 0x4095db
push 0
push 0
push 0
push 0x80000301
push 0
push dword [ebp - 0x1c]
push 0x20004
push 0x16010038
push 0x52010010
push 3
mov eax, 1
mov ebx, 0x4752d0
call fcn.0040d943
add esp, 0x28
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0040961e
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x4094bf
push ebx
call fcn.0040d92b
add esp, 4
mov eax, dword [ebp - 0x24]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x4094d3
push ebx
call fcn.0040d92b
add esp, 4
pop eax
mov dword [ebp - 8], eax
push 0x4a0f08
push dword [ebp - 8]
call fcn.0040155e
add esp, 8
cmp eax, 0
je 0x4095d2
push 0x80000301
push 0
push 0x13
push 0x80000301
push 0
push 0x58
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x40951b
mov eax, 0x4a0f08
push eax
push 3
mov ebx, 0x40dbd0
call fcn.0040d931
add esp, 0x28
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x409545
push ebx
call fcn.0040d92b
add esp, 4
pop eax
mov dword [ebp - 8], eax
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x40955c
mov eax, 0x4a0f08
push eax
push 1
mov ebx, 0x40e140
call fcn.0040d931
add esp, 0x10
mov dword [ebp - 0x20], eax
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x409585
mov eax, 0x4a0f08
push eax
push 0x80000301
push 0
push 4
push 0x80000301
push 0
push dword [ebp - 0x1c]
push 0x20004
push 0x16010038
push 0x52010010
push 4
mov eax, 1
mov ebx, 0x4754a0
call fcn.0040d943
add esp, 0x34
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x4095d2
push ebx
call fcn.0040d92b
add esp, 4
pop ebx
pop ecx
pop edx
inc ecx
jmp 0x409459
add esp, 0xc
pop ebx
pop ecx
pop edx
inc ecx
jmp 0x40908e
add esp, 0xc
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x4095fa
push ebx
call fcn.0040d92b
add esp, 4
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x40960a
push ebx
call fcn.0040d92b
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x40961a
push ebx
call fcn.0040d92b
add esp, 4
mov esp, ebp
pop ebp
ret