Function at 0x10003280
Capabilities:
Initialize winhttp library
Prepare http request
Receive http response
Reference http user-agent string

Disassembly:
push 0x5c
mov eax, 0x1004b061
call fcn.10026ad1
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 0x2c]
mov esi, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x28], ebx
mov dword [eax], ebx
mov dword [ebp - 0x24], esi
call fcn.100014de
lea ecx, [ebp - 0x1c]
call fcn.100014de
lea ecx, [ebp - 0x18]
call fcn.100014de
push 0x3c
pop edi
push edi
lea eax, [ebp - 0x68]
mov byte [ebp - 4], 4
push ebx
push eax
mov dword [ebp - 0x14], ebx
call fcn.10029a90
add esp, 0xc
mov dword [ebp - 0x68], edi
or eax, 0xffffffff
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 8]
push ecx
push ebx
push dword [eax - 0xc]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
test eax, eax
je 0x10003487
mov esi, dword [ebp - 0x54]
mov edi, dword [ebp - 0x58]
call fcn.100184da
push eax
push esi
push edi
lea ecx, [ebp - 0x20]
call fcn.100012fd
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x1c]
call fcn.100015cc
mov ecx, dword [ebp - 0x20]
mov byte [ebp - 4], 4
lea ecx, [ecx - 0x10]
call fcn.10005120
push dword [ebp - 0x3c]
lea ecx, [ebp - 0x20]
call fcn.10001434
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 6
call fcn.100015cc
mov ecx, dword [ebp - 0x20]
mov byte [ebp - 4], 4
lea ecx, [ecx - 0x10]
call fcn.10005120
push ebx
push ebx
push ebx
push ebx
push str.Mozilla_5.0__Windows_NT_10.0_
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov edi, eax
mov dword [ebp - 0x20], edi
test edi, edi
jne 0x10003382
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp - 0x24]
jmp 0x1000348d
push ebx
push dword [ebp - 0x50]
push dword [ebp - 0x1c]
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov edi, eax
mov dword [ebp - 0x28], edi
test edi, edi
je 0x10003374
cmp dword [ebp - 0x5c], 2
mov ecx, 0x800000
mov eax, ebx
cmove eax, ecx
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0x18]
push 0x1004ebfc
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov esi, eax
test esi, esi
je 0x10003487
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
mov edi, eax
test edi, edi
je 0x100033e1
push ebx
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
mov edi, eax
mov eax, dword [ebp + 0xc]
cmp dword [eax - 4], 1
jle 0x100033f8
push dword [eax - 0xc]
lea ecx, [ebp + 0xc]
call fcn.10002d51
mov eax, dword [ebp + 0xc]
push 0x1004ec1c
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.1002d793
add esp, 0xc
test eax, eax
jne 0x10003487
test edi, edi
je 0x1000348f
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], ebx
push eax
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x10003487
mov eax, dword [ebp - 0x10]
inc eax
push eax
call fcn.10017f9b
mov edi, eax
pop ecx
test edi, edi
je 0x1000347c
mov ecx, dword [ebp - 0x10]
inc ecx
push ecx
push ebx
push edi
call fcn.10029a90
add esp, 0xc
mov dword [ebp - 0x24], ebx
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x10]
push edi
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x1000346b
push dword [ebp - 0x14]
push 1
push dword [ebp - 0x24]
push edi
call fcn.10038889
add esp, 0x10
push edi
call fcn.10017fa4
mov eax, dword [ebp - 0x10]
pop ecx
mov ecx, dword [ebp + 0x10]
add dword [ecx], eax
jmp 0x10003481
mov eax, ebx
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x10003412
jmp 0x1000348f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp dword [ebp - 0x14], 0
je 0x1000349e
push dword [ebp - 0x14]
call fcn.10038594
pop ecx
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test esi, esi
je 0x100034ab
push esi
call edi
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x100034b5
push eax
call edi
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x100034bf
push eax
call edi
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.10005120
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx - 0x10]
call fcn.10005120
mov ecx, dword [ebp - 0x2c]
lea ecx, [ecx - 0x10]
call fcn.10005120
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.10005120
mov ecx, dword [ebp + 0xc]
lea ecx, [ecx - 0x10]
call fcn.10005120
mov eax, ebx
call fcn.10026a9f
ret