Function at 0x100581e0
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100e3a17
mov eax, dword fs:[0]
push eax
sub esp, 0x3a0
mov eax, dword [0x1010bb90]
xor eax, esp
mov dword [esp + 0x398], eax
push ebx
push esi
push edi
mov eax, dword [0x1010bb90]
xor eax, esp
push eax
lea eax, [esp + 0x3b0]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebx]
cmp eax, 0x31
ja case.0x10058234.1
movzx eax, byte [eax + 0x100588f0]
jmp dword [eax*4 + 0x100588d0]
mov eax, dword [ebx + 0xe0]
cmp dword [eax + 4], 0xffffffff
je 0x100582b9
push 1
lea esi, [ebp + 8]
call fcn.100507c0
sub esp, 0x1cc
mov ecx, esp
mov dword [esp + 0x1dc], esp
push ecx
mov dword [ebx], 0x2c
call fcn.10058990
mov ecx, esi
lea edi, [esp + 0x330]
call fcn.1005b3d0
add esp, 0x1cc
mov dword [esp + 0x3b8], 0
mov edx, dword [ebx + 0xe0]
mov ecx, dword [edx]
mov edx, dword [ecx + 0xc]
push edx
call fcn.1005b450
lea esi, [esp + 0x254]
call fcn.1002c110
lea esi, [esp + 0x170]
call fcn.1002c110
jmp case.0x10058234.1
sub esp, 0x1cc
mov eax, esp
mov dword [esp + 0x1dc], esp
push eax
mov dword [ebx], 0x2d
call fcn.10058990
mov eax, dword [ebx + 0xdc]
mov ecx, dword [ebx + 0xe0]
lea edx, [ebx + 0xf0]
push edx
push eax
call fcn.1005b4a0
add esp, 0x1d4
jmp case.0x10058234.1
mov eax, dword [ebp + 8]
mov ecx, eax
neg ecx
sbb ecx, ecx
test ecx, fcn.100aec40
jne 0x100586c6
sub esp, 0x1cc
mov eax, esp
mov dword [esp + 0x1dc], esp
push eax
mov dword [ebx], 0x2e
call fcn.10058990
lea eax, [ebx + 0xf0]
lea esi, [esp + 0x2dc]
mov dword [esp + 0x584], 1
call fcn.1002c0e0
mov byte [esp + 0x584], 2
mov ecx, dword [ebx + 0xe0]
push ecx
mov byte [esp + 0x588], 3
call fcn.1005b6e0
add esp, 0x1d0
mov ecx, esi
call fcn.10007a10
jmp case.0x10058234.1
mov eax, dword [ebp + 8]
mov edx, eax
neg edx
sbb edx, edx
test edx, fcn.100aec40
je 0x1005838e
mov ecx, dword [ebp + 0xc]
push ecx
push eax
jmp 0x100588a1
mov eax, dword [ebx + 0xe4]
lea edi, [esp + 0xd8]
call fcn.10051da0
push eax
lea esi, [esp + 0x390]
mov dword [esp + 0x3bc], 4
call fcn.1002bf10
mov esi, edi
mov byte [esp + 0x3b8], 6
call fcn.10021e30
mov eax, dword [ebx + 0xe4]
lea edi, [esp + 0xa0]
call fcn.10051e20
push eax
lea esi, [esp + 0x33c]
mov byte [esp + 0x3bc], 7
call fcn.1002bf10
mov esi, edi
mov byte [esp + 0x3b8], 9
call fcn.10021e30
mov eax, dword [ebx + 0xe4]
lea edi, [esp + 0xbc]
call fcn.10051e90
push eax
lea esi, [esp + 0x374]
mov byte [esp + 0x3bc], 0xa
call fcn.1002bf10
mov esi, edi
mov byte [esp + 0x3b8], 0xc
call fcn.10021e30
mov eax, dword [ebx + 0xe4]
lea edi, [esp + 0xf4]
call fcn.10051f00
push eax
lea esi, [esp + 0x358]
mov byte [esp + 0x3bc], 0xd
call fcn.1002bf10
mov esi, edi
mov byte [esp + 0x3b8], 0xf
call fcn.10021e30
mov edx, dword [ebx + 0xe8]
push 1
push edx
lea eax, [esp + 0x30]
push eax
call fcn.1000a250
push 0x100f540c
push ecx
lea ecx, [esp + 0x394]
push ecx
lea edx, [esp + 0x34]
push edx
mov byte [esp + 0x3c8], 0x10
call fcn.1000ef00
add esp, 0xc
push eax
call fcn.1000f4d0
add esp, 8
lea edi, [ebx + 0xf0]
push 0x30
lea esi, [esp + 0x130]
mov ecx, edi
call fcn.1002c390
push eax
lea eax, [esp + 0x2c]
mov byte [esp + 0x3bc], 0x11
push eax
call fcn.1000ef00
add esp, 8
mov ecx, esi
mov byte [esp + 0x3b8], 0x10
call fcn.10007a10
lea ecx, [esp + 0x28]
push str._HTTP_1.0_r_n
push ecx
call fcn.1000f4d0
lea edx, [esp + 0x30]
push str.Host:
push edx
call fcn.1000f4d0
add esp, 0x10
push 0xc
lea esi, [esp + 0x14c]
mov ecx, edi
call fcn.1002c390
push eax
lea eax, [esp + 0x2c]
push eax
mov byte [esp + 0x3c0], 0x12
call fcn.1000ef00
add esp, 8
mov ecx, esi
mov byte [esp + 0x3b8], 0x10
call fcn.10007a10
lea ecx, [esp + 0x28]
push 0x100f3968
push ecx
call fcn.1000f4d0
lea edx, [esp + 0x30]
push str.Accept:___r_n
push edx
call fcn.1000f4d0
add esp, 0x10
cmp dword [esp + 0x34c], 0
je 0x100585da
lea eax, [esp + 0x28]
push str.Content_Length:
push eax
call fcn.1000f4d0
add esp, 8
push 0x100f3968
push ecx
mov ecx, dword [esp + 0x354]
push ecx
lea edx, [esp + 0x34]
push edx
call fcn.100663b0
add esp, 4
push eax
call fcn.1000f4d0
add esp, 8
cmp dword [esp + 0x384], 0
je 0x100585da
lea eax, [esp + 0x28]
push str.Content_Type:
push eax
call fcn.1000f4d0
add esp, 8
push 0x100f3968
push ecx
lea ecx, [esp + 0x378]
push ecx
lea edx, [esp + 0x34]
push edx
call fcn.1000ef00
add esp, 0xc
push eax
call fcn.1000f4d0
add esp, 8
cmp dword [esp + 0x368], 0
je 0x10058617
push 0x100f3968
push ecx
lea eax, [esp + 0x35c]
push eax
push ecx
lea ecx, [esp + 0x38]
push str.User_Agent:
push ecx
call fcn.1000f4d0
add esp, 0xc
push eax
call fcn.1000ef00
add esp, 0xc
push eax
call fcn.1000f4d0
add esp, 8
lea edx, [esp + 0x28]
push str.Connection:_close_r_n_r_n
push edx
call fcn.1000f4d0
lea eax, [esp + 0x340]
push eax
lea ecx, [esp + 0x34]
push ecx
call fcn.1000ef00
add esp, 0x10
lea eax, [esp + 0x28]
mov byte [esp + 0x3b8], 0xf
call fcn.10009c80
lea ecx, [esp + 0x354]
call fcn.10007a10
lea ecx, [esp + 0x370]
call fcn.10007a10
lea ecx, [esp + 0x338]
call fcn.10007a10
lea ecx, [esp + 0x38c]
mov dword [esp + 0x3b8], 0xffffffff
call fcn.10007a10
mov eax, dword [ebx + 0xe0]
mov ecx, dword [ebx + 0xe8]
mov byte [esp + 0x14], 0
mov edx, dword [esp + 0x14]
push edx
push eax
mov dword [ebx], 0x2f
call fcn.1005b7f0
add esp, 8
jmp case.0x10058234.1
mov eax, dword [ebp + 8]
mov ecx, eax
neg ecx
sbb ecx, ecx
test ecx, fcn.100aec40
je 0x1005878c
mov edx, dword [ebp + 0xc]
push edx
push eax
jmp 0x100588a1
mov eax, dword [ebp + 8]
mov ecx, eax
neg ecx
sbb ecx, ecx
test ecx, fcn.100aec40
jne 0x100586c6
mov eax, dword [ebx + 0xec]
xor edi, edi
mov byte [esp + 0x1c], 1
mov edx, dword [esp + 0x1c]
push edx
cmp eax, edi
sete cl
mov byte [esp + 0x28], cl
mov ecx, dword [esp + 0x28]
push edi
push ecx
push eax
lea edx, [esp + 0x24]
lea esi, [ebx + 0x1bc]
push edx
mov edx, esi
lea ecx, [esp + 0x24]
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], edi
call fcn.10051f70
add esp, 0x14
test al, al
jne 0x1005873f
push 1
lea esi, [ebp + 8]
call fcn.10052390
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push eax
push ecx
jmp 0x100588a1
cmp dword [esi], 0x64
je 0x1005878c
push str._r_n_r_n
lea ecx, [esp + 0x6c]
mov dword [ebx], 0x31
call fcn.100079a0
mov dword [esp + 0x3b8], 0x14
mov eax, dword [ebx + 0xec]
mov ecx, dword [ebx + 0xe0]
lea edx, [esp + 0x68]
push edx
push eax
push ecx
call fcn.1005b8c0
add esp, 0xc
lea ecx, [esp + 0x68]
call fcn.10007a10
jmp case.0x10058234.1
push 0x100f3968
lea ecx, [esp + 0x88]
mov dword [ebx], 0x30
call fcn.100079a0
mov dword [esp + 0x3b8], 0x13
mov eax, dword [ebx + 0xec]
mov ecx, dword [ebx + 0xe0]
lea edx, [esp + 0x84]
push edx
push eax
push ecx
call fcn.1005b8c0
add esp, 0xc
lea ecx, [esp + 0x84]
call fcn.10007a10
jmp case.0x10058234.1
mov edi, dword [ebp + 0x10]
mov ecx, dword [ebx + 0x1b8]
push edi
call fcn.1000a090
mov ecx, dword [ebx + 0x1b8]
mov esi, dword [ebx + 0xec]
push edi
push 0
call fcn.10007be0
push eax
mov eax, dword [esi]
mov edx, dword [eax + 0x18]
mov ecx, esi
call edx
mov eax, dword [ebp + 8]
mov ecx, eax
neg ecx
sbb ecx, ecx
test ecx, fcn.100aec40
jne 0x100586c6
mov esi, dword [ebx + 0x1b8]
lea eax, [esp + 0x20]
push eax
mov ecx, esi
call fcn.10007ba0
lea ecx, [esp + 0x18]
push ecx
mov ecx, esi
mov edi, eax
call fcn.10007b70
mov edx, dword [edi + 4]
mov ecx, dword [edi]
push edx
mov edx, dword [eax + 4]
mov eax, dword [eax]
push ecx
mov ecx, dword [ebx + 0x1c8]
push edx
mov edx, dword [ebx + 0x1c4]
push eax
push ecx
mov ecx, dword [ebx + 0x1c0]
push edx
call fcn.100523d0
add esp, 0x18
test al, al
jne 0x10058874
push 2
jmp 0x1005872a
mov eax, dword [ebx + 0x1bc]
cmp eax, 0xc8
je case.0x10058234.44
push eax
lea esi, [esp + 0x64]
call fcn.1002bf40
mov edx, dword [eax]
mov dword [ebp + 8], edx
mov eax, dword [eax + 4]
add esp, 4
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push ecx
push edx
lea ecx, [ebx + 4]
call fcn.10053c10
mov ecx, dword [esp + 0x3b0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x398]
xor ecx, esp
call fcn.100bfcbc
mov esp, ebp
pop ebp
ret 0xc