Function at 0x10012ba1
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x28c
push ebx
push esi
push edi
xor ebx, ebx
mov esi, 0xff
push esi
lea eax, [esp + 0x9d]
push ebx
push eax
mov dword [esp + 0x30], 4
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], 1
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x24], ebx
mov byte [esp + 0xa4], bl
call sub.msvcrt.dll_memset
add esp, 0xc
push esi
lea eax, [esp + 0x19d]
push ebx
push eax
mov byte [esp + 0x1a4], bl
call sub.msvcrt.dll_memset
add esp, 0xc
mov eax, 0x846
call fcn.10013320
mov dword [esp + 0x34], eax
mov eax, 0x32f7
call fcn.10013320
mov dword [esp + 0x38], eax
mov eax, 0x243b
call fcn.10013320
mov dword [esp + 0x3c], eax
mov eax, 0x809
call fcn.10013320
mov dword [esp + 0x40], eax
mov eax, 0x3084
call fcn.10013320
push 0x3c
pop esi
push esi
mov dword [esp + 0x48], eax
lea eax, [esp + 0x50]
push ebx
push eax
mov dword [esp + 0x54], ebx
call sub.msvcrt.dll_memset
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [esp + 0x94]
mov dword [esp + 0x5c], eax
lea eax, [esp + 0xa4]
mov dword [esp + 0x68], eax
mov eax, 0x100
add esp, 0xc
mov dword [esp + 0x60], eax
mov dword [esp + 0x7c], eax
lea eax, [esp + 0x4c]
push eax
push ebx
push dword [ebp + 0xc]
lea ecx, [esp + 0x1a4]
mov dword [esp + 0x60], 0x10
mov dword [esp + 0x84], ecx
mov dword [esp + 0x58], esi
call edi
push eax
push dword [ebp + 0xc]
call dword [0x1002dee0]
test eax, eax
jne 0x10012cc5
push 0xfffffffffffffffc
pop eax
jmp 0x10012f38
mov dword [esp + 0x20], ebx
mov eax, dword [esp + 0x20]
push ebx
push ebx
push ebx
push dword [esp + eax*4 + 0x38]
mov dword [esp + 0x2c], 0x8404f700
push dword [0x1002dac0]
call dword [0x1002decc]
mov esi, eax
mov dword [esp + 0x14], esi
cmp esi, ebx
jne 0x10012cfd
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x10012e8f
push 3
pop eax
push 4
lea ecx, [esp + 0x14]
push ecx
push eax
push esi
mov dword [esp + 0x20], eax
call dword [0x1002ded8]
push 4
lea eax, [esp + 0x14]
push eax
push 2
push esi
mov dword [esp + 0x20], 0x3a98
call dword [0x1002ded8]
push 4
lea eax, [esp + 0x14]
push eax
push 6
push dword [esp + 0x20]
mov esi, 0x493e0
mov dword [esp + 0x20], esi
call dword [0x1002ded8]
push 4
lea eax, [esp + 0x14]
push eax
push 5
push dword [esp + 0x20]
mov dword [esp + 0x20], esi
call dword [0x1002ded8]
movzx eax, word [esp + 0x64]
push ebx
push ebx
push 3
push ebx
push ebx
push eax
lea eax, [esp + 0xb0]
push eax
push dword [esp + 0x30]
call dword [0x1002defc]
mov esi, dword [ebp + 0x24]
mov dword [esp + 0x10], eax
cmp esi, ebx
je 0x10012d8c
call fcn.10011475
cmp dword [esp + 0x10], ebx
jne 0x10012d9d
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x10012e81
cmp dword [esp + 0x58], 4
jne 0x10012dac
mov dword [esp + 0x1c], 0x8484f700
cmp dword [ebp + 8], 2
mov eax, str.POST
je 0x10012dbc
mov eax, 0x100264b0
push ebx
push dword [esp + 0x20]
lea ecx, [esp + 0x3c]
push ecx
push ebx
push ebx
lea ecx, [esp + 0x1ac]
push ecx
push eax
push dword [esp + 0x2c]
call dword [0x1002dec8]
mov dword [esp + 0x18], eax
cmp esi, ebx
je 0x10012de8
call fcn.10011475
mov esi, dword [esp + 0x18]
cmp esi, ebx
jne 0x10012df8
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x10012e73
cmp dword [esp + 0x58], 4
jne 0x10012e06
push esi
call fcn.10012b53
pop ecx
cmp dword [ebp + 8], 2
jne 0x10012e3e
mov eax, 0x7c7
call fcn.10013320
push dword [ebp + 0x14]
mov dword [esp + 0x20], eax
push dword [ebp + 0x10]
push eax
call edi
push eax
push dword [esp + 0x28]
push esi
call dword [0x1002df00]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x1c]
call fcn.100133be
jmp 0x10012e4d
push ebx
push ebx
push ebx
push ebx
push esi
call dword [0x1002df00]
mov dword [esp + 0x28], eax
mov esi, dword [ebp + 0x24]
cmp esi, ebx
je 0x10012e59
call fcn.10011475
cmp dword [esp + 0x28], ebx
jne 0x10012e9e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [esp + 0x18]
call dword [0x1002dedc]
mov dword [esp + 0x18], ebx
push dword [esp + 0x10]
call dword [0x1002dedc]
mov dword [esp + 0x10], ebx
push dword [esp + 0x14]
call dword [0x1002dedc]
mov dword [esp + 0x14], ebx
inc dword [esp + 0x20]
cmp dword [esp + 0x20], 2
jl 0x10012cc9
cmp dword [esp + 0x18], ebx
jne 0x10012ea9
push 0xfffffffffffffffe
pop edi
jmp 0x10012efb
mov esi, dword [esp + 0x18]
xor eax, eax
lea edi, [esp + 0x2c]
stosd dword es:[edi], eax
push ebx
stosd dword es:[edi], eax
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x34]
push eax
push 0x13
push esi
mov dword [esp + 0x38], 8
call dword [0x1002def4]
test eax, eax
jne 0x10012ee0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xfffffffffffffff8
pop edi
jmp 0x10012ef4
lea edx, [esp + 0x2c]
call fcn.100113ec
cmp eax, 0xc8
je 0x10012f1f
neg eax
mov edi, eax
push esi
call dword [0x1002dedc]
cmp dword [esp + 0x10], ebx
je 0x10012f0b
push dword [esp + 0x10]
call dword [0x1002dedc]
cmp dword [esp + 0x14], ebx
je 0x10012f1b
push dword [esp + 0x14]
call dword [0x1002dedc]
mov eax, edi
jmp 0x10012f38
mov eax, dword [ebp + 0x20]
mov ecx, dword [esp + 0x14]
mov dword [eax], esi
mov eax, dword [ebp + 0x18]
mov dword [eax], ecx
mov eax, dword [ebp + 0x1c]
mov ecx, dword [esp + 0x10]
mov dword [eax], ecx
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret