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

Disassembly:
push 0x5c
mov eax, 0x455b79
call fcn.0042794e
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.004015de
lea ecx, [ebp - 0x1c]
call fcn.004015de
lea ecx, [ebp - 0x18]
call fcn.004015de
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.0042c6e0
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 0x4036f5
mov esi, dword [ebp - 0x54]
mov edi, dword [ebp - 0x58]
call fcn.00419b6c
push eax
push esi
push edi
lea ecx, [ebp - 0x20]
call fcn.004013fd
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x1c]
call fcn.004016cc
mov ecx, dword [ebp - 0x20]
mov byte [ebp - 4], 4
lea ecx, [ecx - 0x10]
call fcn.0040538e
push dword [ebp - 0x3c]
lea ecx, [ebp - 0x20]
call fcn.00401534
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 6
call fcn.004016cc
mov ecx, dword [ebp - 0x20]
mov byte [ebp - 4], 4
lea ecx, [ecx - 0x10]
call fcn.0040538e
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 0x4035f0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp - 0x24]
jmp 0x4036fb
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 0x4035e2
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 0x459c3c
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov esi, eax
test esi, esi
je 0x4036f5
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 0x40364f
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 0x403666
push dword [eax - 0xc]
lea ecx, [ebp + 0xc]
call fcn.00402fbf
mov eax, dword [ebp + 0xc]
push 0x459c5c
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.004303b3
add esp, 0xc
test eax, eax
jne 0x4036f5
test edi, edi
je 0x4036fd
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], ebx
push eax
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x4036f5
mov eax, dword [ebp - 0x10]
inc eax
push eax
call fcn.0041962d
mov edi, eax
pop ecx
test edi, edi
je 0x4036ea
mov ecx, dword [ebp - 0x10]
inc ecx
push ecx
push ebx
push edi
call fcn.0042c6e0
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 0x4036d9
push dword [ebp - 0x14]
push 1
push dword [ebp - 0x24]
push edi
call fcn.0043b47d
add esp, 0x10
push edi
call fcn.00419636
mov eax, dword [ebp - 0x10]
pop ecx
mov ecx, dword [ebp + 0x10]
add dword [ecx], eax
jmp 0x4036ef
mov eax, ebx
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x403680
jmp 0x4036fd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp dword [ebp - 0x14], 0
je 0x40370c
push dword [ebp - 0x14]
call fcn.0043b188
pop ecx
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test esi, esi
je 0x403719
push esi
call edi
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x403723
push eax
call edi
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x40372d
push eax
call edi
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.0040538e
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx - 0x10]
call fcn.0040538e
mov ecx, dword [ebp - 0x2c]
lea ecx, [ecx - 0x10]
call fcn.0040538e
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.0040538e
mov ecx, dword [ebp + 0xc]
lea ecx, [ecx - 0x10]
call fcn.0040538e
mov eax, ebx
call fcn.0042791c
ret