Function at 0x10f1920
Capabilities:
Check http status code
Prepare http request
Read http header
Receive http response

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x11413b1
mov eax, dword fs:[0]
push eax
mov eax, 0x2110
call fcn.010840f0
mov eax, dword [0x115f604]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov edx, dword [ebp + 0x14]
mov dword [ebp - 0x20d4], eax
mov eax, dword [edi]
push eax
mov esi, ecx
mov ecx, dword [ebp + 0x10]
push 0x10448e0
push 0x10448c8
mov dword [ebp - 0x20dc], ecx
lea ecx, [ebp - 0x20c4]
push ecx
push 0x1044848
mov dword [ebp - 0x20d8], edx
lea edx, [ebp - 0x20c0]
push 2
xor ebx, ebx
push edx
mov dword [ebp - 0x20c4], ebx
call fcn.01075110
add esp, 0x1c
mov eax, dword [0x1161d94]
mov edx, dword [eax + 0xc]
mov ecx, 0x1161d94
mov dword [ebp - 4], ebx
call edx
add eax, 0x10
mov dword [ebp - 0x20d0], eax
mov eax, dword [0x1161d94]
mov edx, dword [eax + 0xc]
mov ecx, 0x1161d94
mov byte [ebp - 4], 1
call edx
add eax, 0x10
mov dword [ebp - 0x20cc], eax
mov byte [ebp - 4], 2
mov dword [ebp - 0x20c8], ebx
mov dword [ebp - 0x20e0], 0x1000
call fcn.01127f00
test al, al
je 0x10f1a0c
push 0x10447f8
push 0x1044778
push 3
call fcn.01128b70
add esp, 0xc
push 0x38
lea eax, [ebp - 0x2118]
push ebx
push eax
call fcn.01084910
mov eax, dword [edi]
mov ecx, 1
mov dword [ebp - 0x211c], 0x3c
mov dword [ebp - 0x2108], ecx
mov dword [ebp - 0x20ec], ecx
mov ebx, dword [eax - 0xc]
add esp, 0xc
cmp dword [eax - 4], ecx
jle 0x10f1a4d
mov ecx, ebx
push ecx
mov ecx, edi
call fcn.01073680
mov eax, dword [edi]
lea edx, [ebp - 0x211c]
push edx
push 0
push ebx
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
test eax, eax
jne 0x10f1ab6
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x10f1a74
call esi
jmp 0x10f1a80
call esi
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x20c4], eax
call fcn.01127f00
test al, al
je 0x10f1efa
mov eax, dword [edi]
mov ecx, dword [ebp - 0x20c4]
push eax
push ecx
push 0x1044718
push 0x1044698
push 0
call fcn.01128b70
add esp, 0x14
jmp 0x10f1efa
mov eax, dword [ebp - 0x210c]
test eax, eax
je 0x10f1ad3
mov edx, dword [ebp - 0x2108]
push edx
push eax
lea ecx, [ebp - 0x20d0]
call fcn.01076ac0
mov eax, dword [ebp - 0x20f0]
test eax, eax
je 0x10f1af0
mov ecx, dword [ebp - 0x20ec]
push ecx
push eax
lea ecx, [ebp - 0x20cc]
call fcn.01076ac0
mov edx, dword [ebp - 0x2104]
mov ecx, dword [ebp - 0x20d0]
mov eax, dword [esi]
push 0
push edx
push ecx
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
test eax, eax
mov dword [esi + 4], eax
jne 0x10f1b48
call fcn.01071a70
mov dword [ebp - 0x20c4], eax
call fcn.01127f00
test al, al
je 0x10f1efa
mov edx, dword [ebp - 0x20c4]
push edx
push 0x1044658
push 0x10445d8
push 0
call fcn.01128b70
add esp, 0x10
jmp 0x10f1efa
mov ebx, dword [ebp - 0x2110]
mov edx, dword [ebp - 0x20cc]
xor ecx, ecx
cmp ebx, 2
setne cl
sub ecx, 1
and ecx, 0x800000
push ecx
push 0x1161278
push 0
push 0x1041484
push edx
push 0x10445d0
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
test eax, eax
mov dword [esi + 8], eax
jne 0x10f1bbe
call fcn.01071a70
mov dword [ebp - 0x20c4], eax
call fcn.01127f00
test al, al
je 0x10f1efa
mov eax, dword [ebp - 0x20c4]
push eax
push 0x1044598
push 0x1044518
push 0
call fcn.01128b70
add esp, 0x10
jmp 0x10f1efa
mov ecx, dword [esi]
push edi
push eax
push ecx
call fcn.01122bc0
cmp ebx, 2
mov ebx, dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
jne 0x10f1c0c
mov eax, dword [esi + 8]
push 4
lea ecx, [ebp - 0x20e0]
push ecx
push 0x1f
push eax
call ebx
test eax, eax
jne 0x10f1c0c
call fcn.01127f00
test al, al
je 0x10f1c0c
mov edx, dword [ebp - 0x20c4]
push edx
push 0x1044498
push 0x1044418
push 0
call fcn.01128b70
add esp, 0x10
mov eax, dword [ebp - 0x20d4]
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
test ecx, ecx
jle 0x10f1cf0
mov edx, dword [esi + 8]
add ecx, 1
push ecx
push eax
push 0x1002
push edx
call ebx
test eax, eax
jne 0x10f1c82
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x10f1c43
call esi
jmp 0x10f1c4f
call esi
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x20c4], eax
call fcn.01127f00
test al, al
je 0x10f1efa
mov ecx, dword [ebp - 0x20c4]
push ecx
push 0x1044378
push 0x10442f8
push 3
call fcn.01128b70
add esp, 0x10
jmp 0x10f1efa
mov edx, dword [ebp - 0x20dc]
mov eax, dword [edx]
mov ecx, dword [eax - 0xc]
mov edx, dword [esi + 8]
add ecx, 1
push ecx
push eax
push 0x1003
push edx
call ebx
test eax, eax
jne 0x10f1cf0
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x10f1cb1
call esi
jmp 0x10f1cbd
call esi
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x20c4], eax
call fcn.01127f00
test al, al
je 0x10f1efa
mov eax, dword [ebp - 0x20c4]
push eax
push 0x1040df0
push 0x1044278
push 3
call fcn.01128b70
add esp, 0x10
jmp 0x10f1efa
mov eax, dword [esi + 8]
push 0
push 0
push 0
push 0
push 0
push 0
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
jne 0x10f1d5c
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x10f1d1a
call esi
jmp 0x10f1d26
call esi
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x20c4], eax
call fcn.01127f00
test al, al
je 0x10f1efa
mov ecx, dword [ebp - 0x20c4]
mov edx, dword [edi]
push ecx
push edx
push 0x1044228
push 0x10441a8
push 0
call fcn.01128b70
add esp, 0x14
jmp 0x10f1efa
mov eax, dword [esi + 8]
push 0
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x10f1db9
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x10f1d80
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x20c4], eax
call fcn.01127f00
test al, al
je 0x10f1daa
mov eax, dword [ebp - 0x20c4]
push eax
push 0x1040210
push 0x1044128
push 0
call fcn.01128b70
add esp, 0x10
mov dword [ebp - 0x20c4], 0x80048051
jmp 0x10f1efa
mov ebx, dword [ebp - 0x20d8]
mov eax, dword [esi + 8]
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
push 0
lea ecx, [ebp - 0x20c8]
push ecx
push ebx
push 0
push 0x20000013
push eax
mov dword [ebp - 0x20c8], 4
call edi
test eax, eax
jne 0x10f1e2b
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x10f1dfa
call esi
jmp 0x10f1e06
call esi
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x20c4], eax
call fcn.01127f00
test al, al
je 0x10f1daa
mov edx, dword [ebp - 0x20c4]
push edx
push 0x10440e0
push 0x1044060
jmp 0x10f1da0
mov eax, dword [ebx]
cmp eax, 0xc8
je 0x10f1e6a
cmp eax, 0x130
je 0x10f1e6a
call fcn.01127f00
test al, al
je 0x10f1e5b
mov eax, dword [ebx]
push eax
push 0x1044018
push 0x1043f98
push 0
call fcn.01128b70
add esp, 0x10
mov dword [ebp - 0x20c4], 0x8004825b
jmp 0x10f1efa
mov esi, dword [esi + 8]
push 0
lea ecx, [ebp - 0x20c8]
push ecx
lea edx, [ebp - 0x1fb4]
push edx
push 0
push 0x14
push esi
mov dword [ebp - 0x20c8], 0x1fa1
call edi
test eax, eax
jne 0x10f1eda
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x10f1ea2
call esi
jmp 0x10f1eae
call esi
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x20c4], eax
call fcn.01127f00
test al, al
je 0x10f1efa
mov eax, dword [ebp - 0x20c4]
push eax
push 0x1043f58
push 0x1043ed8
push 0
call fcn.01128b70
add esp, 0x10
jmp 0x10f1efa
push 0x1043ecc
lea ecx, [ebp - 0x1fb4]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x10f1efa
mov dword [ebp - 0x20c4], 1
mov eax, dword [ebp - 0x20cc]
mov esi, dword [ebp - 0x20c4]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x10f1f26
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x20d0]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10f1f4c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x20c0]
mov dword [ebp - 4], 0xffffffff
call fcn.01075230
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.010840d6
mov esp, ebp
pop ebp
ret 0x10