Function at 0x10f6960
Capabilities:
Prepare http request
Read http header
Receive http response
Set http header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x120
push ebx
push esi
push edi
xor edi, edi
push 0x82
lea eax, [ebp - 0x9c]
push edi
push eax
mov dword [ebp - 4], edi
call sub.msvcrt.dll_memset
push 0x64
push 8
push 0x101c034
push 0x101c024
lea ecx, [ebp - 0x9c]
push 0x3f
push ecx
call fcn.0102c0d0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x3550]
add esp, 0x24
test eax, eax
je 0x10f69b6
add eax, 0x70
jmp 0x10f69b8
xor eax, eax
push 1
push 0
lea edx, [ebp - 0x9c]
push edx
push eax
push ebx
call fcn.010ea5a0
mov esi, eax
mov dword [ebp - 0x14], esi
test esi, esi
je 0x10f6c34
cmp esi, 0xffffffff
je 0x10f6c34
push 0
cmp dword [ebp + 0x14], edi
je 0x10f69fe
mov eax, dword [ebp + 0xc]
push 0x1bb
push eax
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov edi, eax
mov dword [ebp + 8], edi
jmp 0x10f6a10
mov ecx, dword [ebp + 0xc]
push 0x50
push ecx
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov dword [ebp + 8], eax
mov edi, eax
test edi, edi
je 0x10f6c21
cmp dword [ebp + 0x14], 0
je 0x10f6a33
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x18]
push 0x800100
push 0
push 0
push 0
push edx
push eax
jmp 0x10f6a46
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x18]
push 0x100
push 0
push 0
push 0
push ecx
push edx
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov esi, eax
test esi, esi
je 0x10f6c17
mov eax, dword [ebx + 0x3550]
test eax, eax
je 0x10f6a6c
push esi
add eax, 0x70
push eax
push ebx
call fcn.010b7a20
mov eax, dword [ebp + 0x3c]
push eax
push eax
push eax
push eax
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
push 4
lea eax, [ebp - 0x10]
push eax
push 0x3f
push edi
mov dword [ebp - 0x10], 1
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
push 0xa0000000
push 0xb
push 0x1018888
push esi
call edi
mov ecx, dword [ebx + 0x3550]
mov edx, dword [ecx + 0x13c]
shl edx, 5
mov eax, dword [edx + 0x1186ac0]
push eax
push 0x101bffc
lea ecx, [ebp - 0x120]
push 0x3f
push ecx
call fcn.0102c0d0
lea eax, [ebp - 0x120]
add esp, 0x10
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10f6ae0
sub eax, edx
push 0xa0000000
sar eax, 1
push eax
lea edx, [ebp - 0x120]
push edx
push esi
call edi
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x1c]
push 0xa0000000
push eax
push ecx
push esi
call edi
push 0xa0000000
push 0x21
push 0x101bfb8
push esi
call edi
mov eax, dword [ebp + 0x2c]
xor ebx, ebx
cmp eax, ebx
je 0x10f6b2e
push eax
push esi
call fcn.01060840
mov eax, dword [ebp + 0x28]
mov edx, dword [ebp + 0x24]
push ebx
push eax
push eax
push edx
push ebx
push ebx
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x10f6c0d
push ebx
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x10f6c0d
push ebx
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0xc]
push ecx
push ebx
push 0x20000013
push esi
mov dword [ebp - 4], 1
mov dword [ebp - 0x18], 4
mov dword [ebp - 0xc], ebx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x10f6c0d
mov eax, dword [ebp + 0x38]
cmp eax, ebx
je 0x10f6b94
mov edx, dword [ebp - 0xc]
mov dword [eax], edx
mov dword [ebp + 0xc], ebx
jmp 0x10f6ba0
mov ecx, dword [ebp + 0xc]
lea eax, [ebx + 0x1002]
push eax
push ecx
mov dword [ebp - 8], 0
call dword [sym.imp.msvcrt.dll_realloc]
mov edi, eax
add esp, 8
test edi, edi
je 0x10f6be8
lea edx, [ebp - 8]
push edx
push 0x1000
lea eax, [edi + ebx]
push eax
push esi
mov dword [ebp + 0xc], edi
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
mov dword [ebp - 4], eax
test eax, eax
je 0x10f6c04
add ebx, dword [ebp - 8]
mov byte [edi + ebx], 0
jmp 0x10f6beb
mov eax, dword [ebp - 4]
test eax, eax
je 0x10f6c04
cmp dword [ebp - 8], 0
ja 0x10f6ba0
mov ecx, dword [ebp + 0x30]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x34]
mov dword [ecx], edx
mov dword [eax], ebx
jmp 0x10f6c0d
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.01061ca0
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov esi, dword [ebp - 0x14]
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x38
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x38