Function at 0x10022a30
Capabilities:
Check http status code

Disassembly:
sub esp, 0x844
mov eax, dword [0x10037d20]
xor eax, esp
mov dword [esp + 0x840], eax
mov eax, dword [esp + 0x850]
push ebx
push ebp
mov ebp, dword [esp + 0x850]
xor ebx, ebx
push esi
push edi
push 0x100
mov dword [esp + 0x14], eax
xor edi, edi
xor eax, eax
mov dword [esp + 0x20], ebp
mov dword [esp + 0x28], eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x654]
push eax
push 0x100
lea eax, [esp + 0x250]
mov dword [esp + 0x24], ebx
push eax
push edi
push edi
push edi
push edi
push ebp
mov dword [esp + 0x58], 4
mov dword [esp + 0x4c], 0x209
call fcn.10022130
push dword [esp + 0x85c]
mov esi, dword [esp + 0x868]
push esi
push dword [esp + 0x18]
call fcn.10008910
lea eax, [esp + 0x244]
push eax
push esi
push dword [esp + 0x18]
call fcn.10008850
lea eax, [esp + 0x650]
push eax
push esi
push dword [esp + 0x18]
call fcn.10008850
lea ecx, [esp + 0x38]
mov edx, 0x105
lea esi, [ebp + 0xe]
mov eax, ecx
sub esi, eax
lea eax, [edx + 0x7ffffef9]
test eax, eax
je 0x10022b0e
movzx eax, word [esi + ecx]
test ax, ax
je 0x10022b0e
mov word [ecx], ax
add ecx, 2
dec edx
jne 0x10022af0
jmp 0x10022b12
test edx, edx
jne 0x10022b15
sub ecx, 2
xor eax, eax
mov word [ecx], ax
lea ecx, [esp + 0x38]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10022b21
push 0
push 0
push 0
push 0
sub ecx, edx
lea eax, [esp + 0x48]
sar ecx, 1
push ecx
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov esi, eax
lea eax, [esi + 1]
push eax
call fcn.10021290
mov ebp, eax
test ebp, ebp
jne 0x10022b63
mov esi, 0xfffffc0d
jmp 0x10022db4
lea ecx, [esp + 0x38]
lea edx, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10022b70
push 0
push 0
push esi
push ebp
sub ecx, edx
lea eax, [esp + 0x48]
sar ecx, 1
push ecx
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov byte [esi + ebp], bl
mov esi, ebp
cmp byte [ebp], bl
je 0x10022bb4
nop
mov al, byte [esi]
cmp al, 0x5c
je 0x10022bb1
cmp al, 0x2f
je 0x10022bb1
inc esi
cmp byte [esi], bl
jne 0x10022ba0
jmp 0x10022bb4
mov byte [esi], bl
inc esi
push 0
push 0
push 1
push 0
push 0
push 0
push ebp
push dword [0x10039500]
call dword [0x100394cc]
mov dword [esp + 0x30], eax
test eax, eax
jne 0x10022be1
call fcn.100228a0
mov esi, eax
jmp 0x10022db4
push esi
push eax
call dword [0x100394e8]
test eax, eax
je 0x10022bf7
mov esi, 0xffffb142
jmp 0x10022d9f
push ebp
call fcn.10021420
mov esi, dword [esp + 0x1c]
xor ebp, ebp
mov ecx, esi
lea edx, [ecx + 2]
jmp 0x10022c10
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10022c10
push 0
push 0
push 0
push 0
sub ecx, edx
sar ecx, 1
push ecx
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov esi, eax
lea eax, [esi + 1]
push eax
call fcn.10021290
mov dword [esp + 0x14], eax
test eax, eax
jne 0x10022c50
mov esi, 0xfffffc0d
jmp 0x10022d9f
mov ecx, dword [esp + 0x1c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10022c57
mov eax, dword [esp + 0x14]
sub ecx, edx
push 0
push 0
push esi
push eax
sar ecx, 1
push ecx
push dword [esp + 0x30]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x28]
push 0
push ecx
lea ecx, [esp + 0x44c]
push ecx
push eax
mov byte [esi + eax], bl
call dword [0x100394c8]
test eax, eax
je 0x10022d98
push 0
push 0
push 0xffffffffffffffff
push 0x10002258
lea eax, [esp + 0x454]
push eax
push dword [0x10039500]
call dword [0x100394c4]
mov ebx, eax
test ebx, ebx
je 0x10022d98
push 0
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x34]
push eax
push 0x20000013
push ebx
call dword [0x100394f8]
test eax, eax
je 0x10022d98
mov eax, dword [esp + 0x2c]
cmp eax, 0xc8
je 0x10022d03
push eax
call fcn.10022860
jmp 0x10022d9d
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x14]
call fcn.100215c0
test eax, eax
je 0x10022d27
cmp eax, 0xfffffffc
mov esi, 0xffffec54
mov ecx, 0xfffff8f1
cmove esi, ecx
jmp 0x10022d9f
push 0x1000
call fcn.10021290
mov edi, eax
test edi, edi
jne 0x10022d3e
mov esi, 0xfffffc0d
jmp 0x10022d9f
lea eax, [esp + 0x20]
mov dword [esp + 0x24], edi
push eax
push 0x1000
push edi
push ebx
call dword [0x100394d0]
test eax, eax
je 0x10022d98
jmp 0x10022d60
mov eax, dword [esp + 0x20]
test eax, eax
je 0x10022e1c
push eax
push edi
push dword [esp + 0x20]
call fcn.10021f30
cmp eax, 0xffff
je 0x10022e30
lea eax, [esp + 0x20]
push eax
push 0x1000
push edi
push ebx
call dword [0x100394d0]
test eax, eax
jne 0x10022d60
call fcn.100228a0
mov esi, eax
push dword [esp + 0x30]
call dword [0x100394d8]
test ebx, ebx
je 0x10022db4
push ebx
call dword [0x100394d8]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x10022dcb
push eax
call fcn.100215a0
push dword [esp + 0x10]
call fcn.100217a0
test ebp, ebp
je 0x10022dd5
push ebp
call fcn.10021420
mov eax, dword [esp + 0x14]
test eax, eax
je 0x10022de3
push eax
call fcn.10021420
test edi, edi
je 0x10022ded
push edi
call fcn.10021420
mov eax, dword [esp + 0x24]
test eax, eax
je 0x10022dff
cmp edi, eax
je 0x10022dff
push eax
call fcn.10021420
mov eax, esi
mov ecx, dword [esp + 0x850]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10026b56
add esp, 0x844
ret 0x10
push ebx
call dword [0x100394d8]
push dword [esp + 0x18]
call fcn.100215a0
test eax, eax
je 0x10022e4b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x70
mov esi, 0xfffffc02
mov ecx, 0xfffff8f0
cmove esi, ecx
jmp 0x10022d9f
push edi
call fcn.10021420
push ebx
call dword [0x100394d8]
xor eax, eax
jmp 0x10022e01