Function at 0x6001de
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x8c
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x4c]
mov dword [ebp - 0x44], eax
mov dl, byte [ebx + 0x50]
mov byte [ebp - 0x3c], dl
mov eax, dword [ebx + 0x30]
lea esi, [ebx + 0x38]
lea edx, [ebp - 0x24]
mov dword [esp + 0x14], edx
lea edx, [ebp - 0x34]
mov dword [esp + 0x10], edx
lea edx, [ebp - 0x20]
mov dword [esp + 0xc], edx
mov edx, 0x5aa
sub edx, eax
mov dword [esp + 8], edx
add eax, dword [ebx + 0x2c]
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.005ff722
cmp dword [ebp - 0x24], 0
je 0x60023f
mov eax, dword [ebp - 0x20]
add dword [ebx + 0x30], eax
jmp 0x6006c1
mov edx, dword [ebx + 0x30]
mov ecx, dword [ebp - 0x20]
mov dword [ebx + 0x30], 0
test eax, eax
je 0x6006c1
add ecx, edx
mov dword [ebp - 0x48], ecx
lea eax, [ebp - 0x34]
mov dword [esp + 8], eax
mov eax, dword [ebx + 4]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x40]
mov dword [esp], eax
call fcn.006242d0
test eax, eax
je 0x600299
cmp dword [ebx + 0x1b8], 0
je 0x600299
mov eax, dword [ebp - 0x48]
cmp dword [ebx + 0x1bc], eax
jne 0x600299
mov dword [ebx + 0x1b8], 0
jmp 0x6006c1
mov edi, dword [ebx + 0x2c]
cmp dword [ebx + 0x6c], 0
je 0x6002c8
mov edx, dword [ebp - 0x48]
mov dword [esp + 8], edx
mov dword [esp + 4], edi
mov dword [esp], esi
call fcn.005ff60c
mov dword [ebx + 0x1b8], 1
mov eax, dword [ebp - 0x48]
mov dword [ebx + 0x1bc], eax
cmp dword [ebp - 0x48], 3
jbe 0x6006c1
mov eax, dword [edi]
mov dword [esp], eax
call sub.WS2_32.dll_ntohl
sub esp, 4
mov esi, eax
and eax, 0xe0fe0000
cmp eax, 0x80c80000
jne 0x6006c1
mov edx, dword [ebp - 0x48]
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x54], 0
movzx eax, byte [ebp - 0x3c]
mov word [ebp - 0x6e], ax
mov eax, ebx
mov ebx, esi
mov esi, eax
movzx eax, bx
shl eax, 2
mov edx, dword [ebp - 0x40]
sub edx, 4
mov dword [ebp - 0x40], edx
cmp eax, edx
ja 0x6006c1
cmp eax, 3
jbe 0x6006c1
mov edx, ebx
shr edx, 0x10
and edx, 0xff
mov dword [ebp - 0x50], edx
sub eax, 4
mov dword [ebp - 0x3c], eax
mov eax, dword [edi + 4]
mov dword [esp], eax
call sub.WS2_32.dll_ntohl
sub esp, 4
mov dword [ebp - 0x58], eax
add edi, 8
mov dword [ebp - 0x4c], edi
mov edi, dword [ebp - 0x40]
sub edi, 4
cmp dword [ebp - 0x50], 0xc9
je 0x600424
cmp dword [ebp - 0x50], 0xcb
je 0x6005df
cmp dword [ebp - 0x50], 0xc8
jne 0x600652
cmp dword [ebp - 0x3c], 0x13
jbe 0x6006c1
sub dword [ebp - 0x3c], 0x14
mov edx, dword [ebp - 0x4c]
mov eax, dword [edx]
mov dword [esp], eax
call sub.WS2_32.dll_ntohl
sub esp, 4
mov dword [ebp - 0x54], eax
mov edx, dword [ebp - 0x4c]
mov eax, dword [edx + 4]
mov dword [esp], eax
call sub.WS2_32.dll_ntohl
sub esp, 4
mov dword [ebp - 0x5c], eax
mov edx, dword [ebp - 0x4c]
mov eax, dword [edx + 8]
mov dword [esp], eax
call sub.WS2_32.dll_ntohl
sub esp, 4
mov edx, eax
mov eax, dword [ebp - 0x4c]
add eax, 0xc
mov dword [ebp - 0x40], eax
mov eax, dword [esi + 0x68]
test eax, eax
je 0x600403
mov dword [esp + 0x10], edx
mov edx, dword [ebp - 0x5c]
mov dword [esp + 0xc], edx
mov edx, dword [ebp - 0x54]
mov dword [esp + 8], edx
mov edx, dword [ebp - 0x58]
mov dword [esp + 4], edx
mov eax, dword [eax + 0xa4]
mov dword [esp], eax
call fcn.005fa3e8
mov eax, dword [ebp - 0x40]
add eax, 8
mov dword [ebp - 0x4c], eax
sub edi, 0x14
mov eax, dword [esi + 0x1cc]
test eax, eax
je 0x600424
mov edx, dword [esi + 0x1d0]
mov dword [esp], edx
call eax
shr ebx, 0x18
and ebx, 0x1f
mov dword [ebp - 0x54], ebx
lea eax, [ebx + ebx*2]
lea edx, [eax*8]
cmp dword [ebp - 0x3c], edx
jb 0x6006c1
sub dword [ebp - 0x3c], edx
mov eax, dword [esi + 0x64]
test eax, eax
je 0x60053a
mov eax, dword [eax + 0xa0]
mov dword [ebp - 0x6c], eax
test ebx, ebx
je 0x60053f
sub edi, 0x18
mov ebx, dword [ebp - 0x4c]
add ebx, 0x18
mov dword [ebp - 0x40], 0
jmp 0x600473
mov edi, eax
mov eax, dword [ebx - 0x18]
mov dword [esp], eax
call sub.WS2_32.dll_ntohl
sub esp, 4
mov edx, dword [esi + 0x64]
cmp eax, dword [edx + 0x80]
jne 0x600520
mov eax, dword [ebx - 0x14]
mov dword [esp], eax
call sub.WS2_32.dll_ntohl
sub esp, 4
mov dword [ebp - 0x5c], eax
mov eax, dword [ebx - 0x10]
mov dword [esp], eax
call sub.WS2_32.dll_ntohl
sub esp, 4
mov dword [ebp - 0x60], eax
mov eax, dword [ebx - 0xc]
mov dword [esp], eax
call sub.WS2_32.dll_ntohl
sub esp, 4
mov dword [ebp - 0x64], eax
mov eax, dword [ebx - 8]
mov dword [esp], eax
call sub.WS2_32.dll_ntohl
sub esp, 4
mov dword [ebp - 0x68], eax
mov eax, dword [ebx - 4]
mov dword [esp], eax
call sub.WS2_32.dll_ntohl
sub esp, 4
mov dword [ebp - 0x4c], ebx
mov dword [esp + 0x1c], eax
mov edx, dword [ebp - 0x68]
mov dword [esp + 0x18], edx
mov eax, dword [ebp - 0x64]
mov dword [esp + 0x14], eax
mov edx, dword [ebp - 0x60]
mov dword [esp + 0x10], edx
mov eax, dword [ebp - 0x5c]
mov dword [esp + 0xc], eax
lea edx, [ebp - 0x34]
mov dword [esp + 8], edx
mov eax, dword [ebp - 0x58]
mov dword [esp + 4], eax
mov edx, dword [ebp - 0x6c]
mov dword [esp], edx
call fcn.005fe676
jmp 0x600523
mov dword [ebp - 0x4c], ebx
inc dword [ebp - 0x40]
lea eax, [edi - 0x18]
add ebx, 0x18
mov edx, dword [ebp - 0x40]
cmp dword [ebp - 0x54], edx
ja 0x600471
jmp 0x60053f
add dword [ebp - 0x4c], edx
sub edi, edx
cmp dword [ebp - 0x50], 0xc9
jne 0x60068f
cmp dword [esi + 0x1dc], 0
je 0x6005bd
cmp dword [ebp - 0x44], 0
jns 0x60056f
mov ebx, dword [ebp - 0x30]
movzx eax, word [ebp - 0x32]
mov dword [esp], eax
call sub.WS2_32.dll_ntohs
sub esp, 4
jmp 0x600576
mov ebx, dword [ebp - 0x44]
mov ax, word [ebp - 0x6e]
movzx eax, ax
mov dword [esp + 4], eax
lea eax, [ebp - 0x1a]
mov dword [esp], eax
call fcn.00625c9e
mov ax, word [ebp - 0x1a]
mov word [esp + 0xc], ax
mov dword [esp + 8], 0xffffffff
mov dword [esp + 4], ebx
mov eax, dword [esi + 0x1dc]
mov dword [esp], eax
call fcn.00625d4e
test eax, eax
je 0x6005bd
mov edx, dword [eax]
test edx, edx
je 0x6005bd
mov eax, dword [eax + 4]
mov dword [esp], eax
call edx
mov eax, dword [esi + 0x1d4]
test eax, eax
je 0x600698
mov edx, dword [esi + 0x1d8]
mov dword [esp], edx
call eax
mov dword [ebp - 0x54], 2
jmp 0x600652
mov ebx, dword [esi + 0x1c0]
test ebx, ebx
je 0x600686
cmp dword [esi + 0x1c8], 0
je 0x600636
mov eax, dword [esi + 0x68]
test eax, eax
je 0x600616
mov edx, dword [ebp - 0x58]
mov dword [esp + 4], edx
mov eax, dword [eax + 0xa4]
mov dword [esp], eax
call fcn.005fa182
test eax, eax
jne 0x600636
mov eax, dword [esi + 0x64]
test eax, eax
je 0x600686
mov edx, dword [ebp - 0x58]
mov dword [esp + 4], edx
mov eax, dword [eax + 0xa0]
mov dword [esp], eax
call fcn.005fe49a
test eax, eax
je 0x600686
mov dword [esi + 0x1c0], 0
mov eax, dword [esi + 0x1c4]
mov dword [esp], eax
call ebx
mov dword [ebp - 0x54], 3
sub edi, dword [ebp - 0x3c]
mov dword [ebp - 0x40], edi
je 0x6006a1
cmp edi, 3
jbe 0x6006c1
mov edi, dword [ebp - 0x4c]
add edi, dword [ebp - 0x3c]
mov eax, dword [edi]
mov dword [esp], eax
call sub.WS2_32.dll_ntohl
sub esp, 4
mov ebx, eax
and eax, 0xc0000000
cmp eax, 0x80000000
je 0x60030c
jmp 0x6006c1
mov dword [ebp - 0x54], 3
jmp 0x600652
mov dword [ebp - 0x54], 2
jmp 0x600652
mov dword [ebp - 0x54], 2
jmp 0x600652
mov eax, dword [ebp - 0x58]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x48]
add eax, 0x1c
mov dword [esp + 8], eax
mov edx, dword [ebp - 0x54]
mov dword [esp + 4], edx
mov dword [esp], esi
call fcn.00600142
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret