Function at 0x51e830
Capabilities:
Check http status code

Disassembly:
sub esp, 0x114
mov eax, dword [0x59b000]
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 [0x598c84], esi
push 0xc8
xor edi, edi
mov dword [esp + 0x18], eax
lea eax, [esp + 0x5c]
push edi
push eax
call fcn.0054b440
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 0x51e916
test bl, 0x30
je 0x51eb13
test bl, 2
jne 0x51eb13
mov dword [esp + 0x38], 0x320006
mov dword [esp + 0x3c], 0x1f40c50
mov dword [esp + 0x40], 0x130707e2
mov dword [esp + 0x44], esi
test bl, 0x20
je 0x51e908
push 0xc8
lea eax, [esp + 0x5c]
push eax
lea eax, [esp + 0x40]
push eax
push ebx
push 1
call fcn.0051d740
mov esi, eax
add esp, 0x14
cmp esi, 0xc8
jb 0x51ea6d
jmp 0x51eb6e
mov esi, 0x10
lea edi, [esp + 0x38]
jmp 0x51ea7d
push ebx
push ebp
call fcn.005272b0
test eax, eax
je 0x51eb4d
cmp dword [esp + 0x134], esi
je 0x51e940
lea eax, [esp + 0x1c]
push eax
call fcn.00521450
test eax, eax
je 0x51eb4d
mov eax, ebx
shr eax, 0x10
and eax, 1
test byte [0x598c80], 4
mov dword [0x598ca8], eax
je 0x51e965
mov dword [0x598c84], 0x26
jmp 0x51eb4d
test bl, 0x30
je 0x51ea1b
mov eax, dword [0x598c88]
push 0x30
push 0x14
push 0x2c
mov dword [esp + 0x24], eax
mov dword [0x598c88], 0x13
call fcn.00522970
test eax, eax
je 0x51eb4d
mov ecx, dword [0x598c9c]
mov dword [eax + 8], ecx
mov ecx, dword [0x598c88]
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], 0x20
mov ecx, dword [0x598c88]
mov dword [esp + 0x24], ecx
lea ecx, [esp + 0x38]
mov dword [esp + 0x20], ecx
lea ecx, [esp + 0x20]
push ecx
push eax
push dword [0x598ccc]
mov dword [esp + 0x34], 0x20
call fcn.00527870
add esp, 0xc
mov esi, eax
cmp dword [0x598c84], edi
jne 0x51eb4d
cmp esi, 0x20
ja 0x51eb4d
mov eax, dword [esp + 0x18]
lea edi, [esp + 0x38]
mov dword [0x598c88], eax
test al, 2
je 0x51ea16
test al, 1
je 0x51eabb
cmp word [esp + 0x48], 0
jne 0x51ea1b
and ebx, 0xfffffffd
mov esi, 0x10
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x51eadc
call fcn.00522d40
cmp eax, 0x81
ja 0x51eb13
mov ecx, dword [eax*4 + 0x598918]
mov esi, ecx
lea edx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x51ea43
sub esi, edx
je 0x51eb13
push esi
push ecx
lea eax, [esp + 0x60]
push eax
call fcn.0054adf0
add esp, 0xc
cmp esi, 0xc8
jae 0x51eb6e
mov byte [esp + esi + 0x58], 0
lea edi, [esp + 0x58]
mov eax, dword [esp + 0x134]
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x51eb32
cmp eax, esi
jb 0x51eb32
mov eax, dword [esp + 0x14]
test eax, eax
je 0x51eb1f
test al, 0x20
jne 0x51eb1f
push esi
push edi
push ecx
mov dword [0x598c84], 0
call fcn.0054adf0
add esp, 0xc
jmp 0x51eb4d
cmp word [esp + 0x48], 0
jne 0x51eacb
and ebx, 0xfffffffd
mov byte [esp + 0x13], 0
mov esi, ebx
lea edi, [esp + 0x48]
and esi, 2
shl esi, 3
jmp 0x51ea1b
test al, 0x20
jne 0x51eae9
test bl, 8
je 0x51ea76
test al, 0x10
je 0x51ea76
cmp byte [esp + 0x13], 0
je 0x51eb0b
push 0xc8
lea eax, [esp + 0x5c]
push eax
lea eax, [esp + 0x40]
push eax
push ebx
push ebp
call fcn.0051d740
add esp, 0x14
mov esi, eax
test esi, esi
jne 0x51ea72
mov dword [0x598c84], 4
jmp 0x51eb4d
push dword [0x598ca8]
push esi
push edi
push dword [esp + 0x28]
call fcn.005275d0
jmp 0x51eb4d
test eax, eax
jne 0x51eb43
mov dword [0x598c84], eax
test bl, 0x20
je 0x51eb4d
inc esi
jmp 0x51eb4d
mov dword [0x598c84], 5
push esi
call fcn.005275b0
mov ecx, dword [esp + 0x120]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0054a992
add esp, 0x114
ret 0x10
call fcn.0054f847
int3