Function at 0x40a681
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
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 dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
mov eax, str.1AFE09C
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
push dword [0x4e79c8]
call fcn.0040acb1
mov dword [ebp - 0x30], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x40a6fa
push ebx
call fcn.0040f66a
add esp, 4
cmp dword [ebp - 0x30], 0
jg 0x40a704
mov eax, str.1AFE09CB4
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
push dword [0x4e79c8]
call fcn.0040acb1
mov dword [ebp - 0x30], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x40a72e
push ebx
call fcn.0040f66a
add esp, 4
cmp dword [ebp - 0x30], 0
jne 0x40a73d
jmp 0x40acad
mov eax, str.1AFE09C
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
push dword [0x4e79c8]
call fcn.0040acb1
mov dword [ebp - 0x30], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x40a767
push ebx
call fcn.0040f66a
add esp, 4
cmp dword [ebp - 0x30], 0
jle 0x40ac25
mov eax, str.1AFE09CB4
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
push dword [0x4e79c8]
call fcn.0040acb1
mov dword [ebp - 0x30], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x40a79b
push ebx
call fcn.0040f66a
add esp, 4
cmp dword [ebp - 0x30], 0
jle 0x40ac25
mov eax, str.1AFE09C
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00405535
mov dword [ebp - 0x30], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x40a7c9
push ebx
call fcn.0040f66a
add esp, 4
mov dword [ebp - 0x34], 0
push 0
push dword [ebp - 0x34]
push dword [ebp - 0x30]
push dword [0x4e79c8]
call fcn.0040b245
mov dword [ebp - 4], eax
mov eax, 0x4c036b
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00405535
mov dword [ebp - 0x30], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x40a80a
push ebx
call fcn.0040f66a
add esp, 4
fild dword [ebp - 4]
fstp qword [ebp - 0x38]
fld qword [ebp - 0x38]
fild dword [ebp - 0x30]
fstp qword [ebp - 0x40]
fadd qword [ebp - 0x40]
fstp qword [ebp - 0x48]
mov dword [ebp - 0x4c], 0
push 0
push dword [ebp - 0x4c]
fld qword [ebp - 0x48]
call fcn.00405e45
push eax
push dword [0x4e79c8]
call fcn.0040b245
mov dword [ebp - 8], eax
mov eax, 0x4c036e
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00405535
mov dword [ebp - 0x30], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x40a866
push ebx
call fcn.0040f66a
add esp, 4
fild dword [ebp - 8]
fstp qword [ebp - 0x38]
fld qword [ebp - 0x38]
fild dword [ebp - 0x30]
fstp qword [ebp - 0x40]
fadd qword [ebp - 0x40]
fstp qword [ebp - 0x48]
mov dword [ebp - 0x4c], 0
push 0
push dword [ebp - 0x4c]
fld qword [ebp - 0x48]
call fcn.00405e45
push eax
push dword [0x4e79c8]
call fcn.0040b245
mov dword [ebp - 0xc], eax
mov eax, 0x4c036b
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00405535
mov dword [ebp - 0x30], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x40a8c2
push ebx
call fcn.0040f66a
add esp, 4
fild dword [ebp - 8]
fstp qword [ebp - 0x38]
fld qword [ebp - 0x38]
fild dword [ebp - 0x30]
fstp qword [ebp - 0x40]
fadd qword [ebp - 0x40]
fstp qword [ebp - 0x48]
mov dword [ebp - 0x4c], 0
push 0
push dword [ebp - 0x4c]
fld qword [ebp - 0x48]
call fcn.00405e45
push eax
push dword [0x4e79c8]
call fcn.0040b245
mov dword [ebp - 0x10], eax
fild dword [ebp - 0x10]
fstp qword [ebp - 0x30]
fld qword [ebp - 0x30]
fild dword [ebp - 0xc]
fstp qword [ebp - 0x38]
fsub qword [ebp - 0x38]
fstp qword [ebp - 0x40]
fld qword [ebp - 0x40]
fdiv qword [0x4c0371]
fstp qword [ebp - 0x48]
fld qword [ebp - 0x48]
call fcn.00405e45
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
xor ecx, ecx
push eax
lea eax, [ebp - 0x18]
mov ebx, eax
pop eax
inc ecx
push ecx
push ebx
mov dword [ebx], ecx
push eax
cmp ecx, eax
jg 0x40ac22
fild dword [ebp - 0x18]
fstp qword [ebp - 0x30]
fld qword [ebp - 0x30]
fmul qword [0x4c0371]
fstp qword [ebp - 0x38]
fild dword [ebp - 0xc]
fstp qword [ebp - 0x40]
fld qword [ebp - 0x40]
fadd qword [ebp - 0x38]
fstp qword [ebp - 0x48]
mov dword [ebp - 0x4c], 0
push 0
push dword [ebp - 0x4c]
fld qword [ebp - 0x48]
call fcn.00405e45
push eax
push dword [0x4e79c8]
call fcn.0040b245
mov dword [ebp - 0x1c], eax
mov eax, str.1AFE09C
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00405535
mov dword [ebp - 0x30], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x40a9a8
push ebx
call fcn.0040f66a
add esp, 4
mov dword [ebp - 0x34], 0
push 0
push dword [ebp - 0x34]
push dword [ebp - 0x30]
push dword [0x4e79c8]
call fcn.0040b245
cmp dword [ebp - 0x1c], eax
jne 0x40a9d0
jmp 0x40ac1a
cmp dword [ebp - 0x1c], 0x1000000
jge 0x40a9e2
jmp 0x40ac1a
mov eax, 0x4c0379
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00405535
mov dword [ebp - 0x30], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x40aa06
push ebx
call fcn.0040f66a
add esp, 4
fild dword [ebp - 0x1c]
fstp qword [ebp - 0x38]
fld qword [ebp - 0x38]
fild dword [ebp - 0x30]
fstp qword [ebp - 0x40]
fadd qword [ebp - 0x40]
fstp qword [ebp - 0x48]
mov dword [ebp - 0x4c], 0
push 0
push dword [ebp - 0x4c]
fld qword [ebp - 0x48]
call fcn.00405e45
push eax
push dword [0x4e79c8]
call fcn.0040b245
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x211
je 0x40aa6c
cmp dword [ebp - 0x20], 0x111
je 0x40aa6c
cmp dword [ebp - 0x20], 0x221
je 0x40aa6c
mov eax, 1
jmp 0x40aa6e
xor eax, eax
test eax, eax
je 0x40aa7b
jmp 0x40ac1a
mov eax, 0x4c037c
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00405535
mov dword [ebp - 0x30], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x40aa9f
push ebx
call fcn.0040f66a
add esp, 4
fild dword [ebp - 0x1c]
fstp qword [ebp - 0x38]
fld qword [ebp - 0x38]
fild dword [ebp - 0x30]
fstp qword [ebp - 0x40]
fadd qword [ebp - 0x40]
fstp qword [ebp - 0x48]
mov dword [ebp - 0x4c], 0
push 0
push dword [ebp - 0x4c]
fld qword [ebp - 0x48]
call fcn.00405e45
push eax
push dword [0x4e79c8]
call fcn.0040b245
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x40aaf2
cmp dword [ebp - 0x24], 0xc8
je 0x40aaf2
xor eax, eax
jmp 0x40aaf7
mov eax, 1
test eax, eax
je 0x40ab04
jmp 0x40ac1a
mov eax, str.1DA8
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00405535
mov dword [ebp - 0x30], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x40ab28
push ebx
call fcn.0040f66a
add esp, 4
fild dword [ebp - 0x1c]
fstp qword [ebp - 0x38]
fld qword [ebp - 0x38]
fild dword [ebp - 0x30]
fstp qword [ebp - 0x40]
fadd qword [ebp - 0x40]
fstp qword [ebp - 0x48]
fld qword [ebp - 0x48]
call fcn.00405e45
push eax
call fcn.0040b36a
mov dword [ebp - 0x54], eax
fild dword [ebp - 0x54]
fstp qword [ebp - 0x54]
fld qword [ebp - 0x54]
fsub qword [0x4c0385]
ftst
fnstsw ax
test ah, 1
je 0x40ab68
fchs
fcomp qword [0x4be44f]
fnstsw ax
test ah, 0x41
jne 0x40abc5
mov eax, str.1DA8
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00405535
mov dword [ebp - 0x30], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x40ab9d
push ebx
call fcn.0040f66a
add esp, 4
fild dword [ebp - 0x1c]
fstp qword [ebp - 0x38]
fld qword [ebp - 0x38]
fild dword [ebp - 0x30]
fstp qword [ebp - 0x40]
fadd qword [ebp - 0x40]
fstp qword [ebp - 0x48]
push 0xcf1dccc8
fld qword [ebp - 0x48]
call fcn.00405e45
push eax
call fcn.0040b5c0
inc dword [ebp - 0x28]
push 0x80000301
push 0
push 0x13
push 0x80000301
push 0
push 9
push 2
mov ebx, 0x40fd50
call fcn.0040f670
add esp, 0x1c
push 0x80000301
push 0
push eax
push 1
mov ebx, 0x4104c0
call fcn.0040f670
add esp, 0x10
cmp dword [ebp - 0x28], eax
jne 0x40ac1a
jmp 0x40ac22
pop eax
pop ebx
pop ecx
jmp 0x40a932
add esp, 0xc
push 0
mov ebx, 0x4112d0
call fcn.0040f670
add esp, 4
mov dword [ebp - 0x2c], eax
push 0
mov ebx, 0x4112f0
call fcn.0040f670
add esp, 4
mov dword [ebp - 0x30], eax
push getpeername
push 0
push 1
push 0x80000301
push 0
push 0xffffffff
push getpeername
push 0
push 0x4c038d
push 0x80000301
push 0
push dword [ebp - 0x30]
push 0x80000301
push 0
push dword [ebp - 0x2c]
push 0x30001
push 0x16013a23
push 0x520139f5
push 6
mov eax, 2
mov ebx, 0x45cea0
call fcn.0040f688
add esp, 0x4c
mov esp, ebp
pop ebp
ret