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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa0
mov ecx, dword [ebp + 0xc]
xor eax, eax
mov dword [ebp - 0x14], 1
mov dword [ebp - 4], eax
mov dword [ebp - 8], 4
mov dword [ebp - 0xc], eax
test ecx, ecx
je 0x10fb5e8
push 0x200
push ecx
call fcn.0119525f
add esp, 8
mov dword [ebp - 0x1c], eax
cmp eax, 0xa
jbe 0x10fb5f9
push edi
push 0x82
lea eax, [ebp - 0xa0]
push 0
push eax
call sub.msvcrt.dll_memset
push 0x4b
push 0xd
push 0x101cef4
push 0x101cdd4
lea ecx, [ebp - 0xa0]
push 0x3f
push ecx
call fcn.0102d240
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x35a8]
add esp, 0x24
test eax, eax
je 0x10fb43b
add eax, 0x70
jmp 0x10fb43d
xor eax, eax
push esi
push 1
push 0
lea edx, [ebp - 0xa0]
push edx
push eax
push edi
call fcn.010ee760
mov esi, eax
mov dword [ebp - 0x18], esi
test esi, esi
je 0x10fb5ee
cmp esi, 0xffffffff
je 0x10fb5ee
mov edi, dword [edi + 0x2f7e0]
test edi, edi
je 0x10fb477
mov eax, dword [edi + 4]
test eax, eax
jne 0x10fb47c
mov eax, 0x101ced4
push ebx
push 0
push 0x1bb
push eax
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov ebx, eax
mov dword [ebp - 0x10], ebx
test ebx, ebx
je 0x10fb5db
test edi, edi
je 0x10fb4a4
mov eax, dword [edi + 8]
test eax, eax
jne 0x10fb4a9
mov eax, 0x101cea8
push 0x800100
push 0
push 0
push 0
push eax
push 0x10194ec
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov esi, eax
test esi, esi
je 0x10fb5d1
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x35a8]
test eax, eax
je 0x10fb4e3
push esi
add eax, 0x70
push eax
push ecx
call fcn.010bc480
push 0x7530
push 0x7530
push 0x7530
push 0x7530
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
push 4
lea eax, [ebp - 0x14]
push eax
push 0x3f
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
mov ebx, dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
push 0xa0000000
push 0xb
push 0x10194a4
push esi
call ebx
push 0xa0000000
push 0x2d
push 0x101ce00
push esi
call ebx
test edi, edi
je 0x10fb53e
mov eax, dword [edi + 0x10]
mov ecx, eax
test eax, eax
jne 0x10fb543
mov ecx, 0x101ce94
test edi, edi
je 0x10fb550
mov edi, dword [edi + 0xc]
mov eax, edi
test edi, edi
jne 0x10fb555
mov eax, 0x101ce7c
push 0
push ecx
push eax
push 1
push 0
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSetCredentials]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp + 0xc]
push 0
push eax
push eax
push ecx
push 0
push 0
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x10fb5c7
push 0
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x10fb5c7
push 0
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 4]
push eax
push 0
push 0x20000013
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x10fb5c7
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x10fb5c7
mov edi, dword [ebp + 0x14]
test edi, edi
jbe 0x10fb5c7
lea ecx, [ebp - 0xc]
push ecx
push edi
push ebx
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
mov byte [ebx + edi - 1], 0
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov ebx, dword [ebp - 0x10]
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov esi, dword [ebp - 0x18]
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov eax, dword [ebp - 4]
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp - 4]
pop esi
pop edi
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 0x10