Function at 0x10022bd1
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x284
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x14], 4
mov edi, 0x100
mov dword [ebp - 0x1c], eax
push edi
push eax
mov ebx, eax
mov dword [ebp - 0x18], 1
lea eax, [ebp - 0x180]
mov esi, edx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x280]
push edi
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov ecx, 0x2b1
call fcn.1001d413
mov ecx, 0xe96
mov dword [ebp - 0x34], eax
call fcn.1001d413
mov ecx, 0xf4b
mov dword [ebp - 0x30], eax
call fcn.1001d413
mov ecx, 0x3cf
mov dword [ebp - 0x2c], eax
call fcn.1001d413
mov ecx, 0xfce
mov dword [ebp - 0x28], eax
call fcn.1001d413
and dword [ebp - 0x20], ebx
push 0x3c
pop edi
push edi
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x70]
push ebx
push eax
call fcn.1001c3ee
lea eax, [ebp - 0x80]
mov dword [ebp - 0x68], 0x10
mov dword [ebp - 0x6c], eax
add esp, 0xc
lea eax, [ebp - 0x180]
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x60], eax
mov ecx, 0x100
lea eax, [ebp - 0x280]
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x70]
push eax
push ebx
push esi
mov dword [ebp - 0x40], ecx
call fcn.10020662
pop ecx
push eax
mov eax, dword [0x10064080]
push esi
call dword [eax + 0x28]
test eax, eax
jne 0x10022cbf
push 0xfffffffffffffffc
pop eax
jmp 0x10022eda
xor eax, eax
mov dword [ebp - 8], eax
mov esi, eax
push 0
push 0
push 0
push dword [ebp + eax*4 - 0x1c]
mov eax, dword [0x10064080]
push dword [0x100663f4]
mov dword [ebp - 4], 0x8404f700
call dword [eax]
mov edi, eax
test edi, edi
jne 0x10022cf5
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x10022e29
mov ecx, edi
call fcn.10022b69
xor eax, eax
push eax
push eax
push 3
push eax
push eax
push dword [ebp - 0x58]
lea eax, [ebp - 0x180]
push eax
mov eax, dword [0x10064080]
push edi
call dword [eax + 0x1c]
cmp dword [ebp + 0x1c], 0
mov ebx, eax
je 0x10022d27
mov ecx, dword [ebp + 0x1c]
call fcn.1001d6a0
test ebx, ebx
jne 0x10022d3f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [0x10064080]
push edi
call dword [eax + 8]
jmp 0x10022e27
cmp dword [ebp - 0x64], 4
mov eax, 0x8484f700
je 0x10022d4d
mov eax, dword [ebp - 4]
xor esi, esi
push esi
push eax
lea eax, [ebp - 0x34]
push eax
push esi
push esi
lea eax, [ebp - 0x280]
push eax
mov eax, dword [0x10064080]
push str.POST
push ebx
call dword [eax + 0x20]
mov dword [ebp - 4], eax
cmp dword [ebp + 0x1c], esi
je 0x10022d7f
mov ecx, dword [ebp + 0x1c]
call fcn.1001d6a0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x10022da7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [0x10064080]
push ebx
call dword [eax + 8]
mov eax, dword [0x10064080]
mov ebx, esi
push edi
call dword [eax + 8]
mov edi, esi
mov esi, dword [ebp - 4]
jmp 0x10022e29
cmp dword [ebp - 0x64], 4
jne 0x10022db4
mov ecx, eax
call fcn.10022b17
mov ecx, 0x64c
call fcn.1001d413
push dword [ebp + 0xc]
mov esi, eax
push dword [ebp + 8]
mov dword [ebp - 0xc], esi
push esi
call fcn.10020662
pop ecx
push eax
mov eax, dword [0x10064080]
push esi
mov esi, dword [ebp - 4]
push esi
call dword [eax + 0x24]
lea ecx, [ebp - 0xc]
mov dword [ebp - 4], eax
call fcn.1001c261
cmp dword [ebp + 0x1c], 0
je 0x10022df7
mov ecx, dword [ebp + 0x1c]
call fcn.1001d6a0
cmp dword [ebp - 4], 0
jne 0x10022e46
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [0x10064080]
push esi
call dword [eax + 8]
mov eax, dword [0x10064080]
and dword [ebp - 4], 0
push ebx
call dword [eax + 8]
mov eax, dword [0x10064080]
xor ebx, ebx
push edi
call dword [eax + 8]
mov esi, dword [ebp - 4]
xor edi, edi
mov eax, dword [ebp - 8]
mov edx, esi
inc eax
mov ecx, ebx
mov dword [ebp - 8], eax
cmp eax, 2
jl 0x10022cc6
test edx, edx
jne 0x10022e46
push 0xfffffffffffffffe
pop esi
jmp 0x10022eaa
push 8
pop eax
xor ecx, ecx
mov dword [ebp - 0x14], eax
push eax
push ecx
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], ecx
push eax
mov dword [ebp - 0xc], ecx
call fcn.1001c3ee
add esp, 0xc
lea eax, [ebp - 0x14]
push 0
push eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [0x10064080]
push 0x13
push esi
call dword [eax + 0xc]
test eax, eax
jne 0x10022e8a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], 0xfffffff8
jmp 0x10022e9e
lea ecx, [ebp - 0x10]
call fcn.1001d5aa
cmp eax, 0xc8
je 0x10022ec9
neg eax
mov dword [ebp - 8], eax
mov eax, dword [0x10064080]
push esi
call dword [eax + 8]
mov esi, dword [ebp - 8]
test ebx, ebx
je 0x10022eb7
mov eax, dword [0x10064080]
push ebx
call dword [eax + 8]
test edi, edi
je 0x10022ec5
mov ecx, dword [0x10064080]
push edi
call dword [ecx + 8]
mov eax, esi
jmp 0x10022eda
mov eax, dword [ebp + 0x18]
mov dword [eax], esi
mov eax, dword [ebp + 0x10]
mov dword [eax], edi
mov eax, dword [ebp + 0x14]
mov dword [eax], ebx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret