Function at 0x508f50
Capabilities:
Check http status code

Disassembly:
sub esp, 0x114
mov eax, dword [0x586220]
xor eax, esp
mov dword [esp + 0x110], eax
mov eax, dword [esp + 0x120]
push ebx
mov ebx, dword [esp + 0x120]
push ebp
mov ebp, dword [esp + 0x120]
push esi
mov dword [esp + 0x18], eax
xor esi, esi
push edi
mov eax, ebx
mov byte [esp + 0x13], 1
and eax, 0xf0
mov dword [0x584cfc], esi
push 0xc8
xor edi, edi
mov dword [esp + 0x18], eax
lea eax, [esp + 0x5c]
push edi
push eax
call fcn.00535f30
mov eax, dword [esp + 0x140]
xorps xmm0, xmm0
add esp, 0xc
movdqu xmmword [esp + 0x38], xmm0
movdqu xmmword [esp + 0x48], xmm0
test ebp, ebp
jne 0x509036
test bl, 0x30
je 0x509233
test bl, 2
jne 0x509233
mov dword [esp + 0x38], 0x340006
mov dword [esp + 0x3c], 0x1f40e6b
mov dword [esp + 0x40], 0x1e0707e3
mov dword [esp + 0x44], esi
test bl, 0x20
je 0x509028
push 0xc7
lea eax, [esp + 0x5c]
push eax
lea eax, [esp + 0x40]
push eax
push ebx
push 1
call fcn.00507e40
mov esi, eax
add esp, 0x14
cmp esi, 0xc8
jb 0x50918d
jmp 0x50928e
mov esi, 0x10
lea edi, [esp + 0x38]
jmp 0x50919d
push ebx
push ebp
call fcn.00511a90
test eax, eax
je 0x50926d
cmp dword [esp + 0x134], esi
je 0x509060
lea eax, [esp + 0x1c]
push eax
call fcn.0050bb70
test eax, eax
je 0x50926d
mov eax, ebx
shr eax, 0x10
and eax, 1
test byte [0x584cf8], 4
mov dword [0x584d20], eax
je 0x509085
mov dword [0x584cfc], 0x26
jmp 0x50926d
test bl, 0x30
je 0x50913b
mov eax, dword [0x584d00]
push 0x30
push 0x14
push 0x2c
mov dword [esp + 0x24], eax
mov dword [0x584d00], 0x13
call fcn.0050d110
test eax, eax
je 0x50926d
mov ecx, dword [0x584d14]
mov dword [eax + 8], ecx
mov ecx, dword [0x584d00]
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], 0x20
mov ecx, dword [0x584d00]
mov dword [esp + 0x24], ecx
lea ecx, [esp + 0x38]
mov dword [esp + 0x20], ecx
lea ecx, [esp + 0x20]
push ecx
push eax
push dword [0x584d44]
mov dword [esp + 0x34], 0x20
call fcn.00512060
add esp, 0xc
mov esi, eax
cmp dword [0x584cfc], edi
jne 0x50926d
cmp esi, 0x20
ja 0x50926d
mov eax, dword [esp + 0x18]
lea edi, [esp + 0x38]
mov dword [0x584d00], eax
test al, 2
je 0x509136
test al, 1
je 0x5091db
cmp word [esp + 0x48], 0
jne 0x50913b
and ebx, 0xfffffffd
mov esi, 0x10
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x5091fc
call fcn.0050d500
cmp eax, 0x81
ja 0x509233
mov ecx, dword [eax*4 + 0x584990]
mov esi, ecx
lea edx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x509163
sub esi, edx
je 0x509233
push esi
push ecx
lea eax, [esp + 0x60]
push eax
call fcn.005358e0
add esp, 0xc
cmp esi, 0xc8
jae 0x50928e
mov byte [esp + esi + 0x58], 0
lea edi, [esp + 0x58]
mov eax, dword [esp + 0x134]
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x509252
cmp eax, esi
jb 0x509252
mov eax, dword [esp + 0x14]
test eax, eax
je 0x50923f
test al, 0x20
jne 0x50923f
push esi
push edi
push ecx
mov dword [0x584cfc], 0
call fcn.005358e0
add esp, 0xc
jmp 0x50926d
cmp word [esp + 0x48], 0
jne 0x5091eb
and ebx, 0xfffffffd
mov byte [esp + 0x13], 0
mov esi, ebx
lea edi, [esp + 0x48]
and esi, 2
shl esi, 3
jmp 0x50913b
test al, 0x20
jne 0x509209
test bl, 8
je 0x509196
test al, 0x10
je 0x509196
cmp byte [esp + 0x13], 0
je 0x50922b
push 0xc8
lea eax, [esp + 0x5c]
push eax
lea eax, [esp + 0x40]
push eax
push ebx
push ebp
call fcn.00507e40
add esp, 0x14
mov esi, eax
test esi, esi
jne 0x509192
mov dword [0x584cfc], 4
jmp 0x50926d
push dword [0x584d20]
push esi
push edi
push dword [esp + 0x28]
call fcn.00511db0
jmp 0x50926d
test eax, eax
jne 0x509263
mov dword [0x584cfc], eax
test bl, 0x20
je 0x50926d
inc esi
jmp 0x50926d
mov dword [0x584cfc], 5
push esi
call fcn.00511d90
mov ecx, dword [esp + 0x120]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00535482
add esp, 0x114
ret 0x10
call fcn.0053a31c
int3