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

Disassembly:
push 0x80
mov eax, 0x1004b0d3
call fcn.10026ad1
xor ebx, ebx
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], ebx
call fcn.100014de
lea ecx, [ebp - 0x20]
call fcn.100014de
lea ecx, [ebp - 0x24]
call fcn.100014de
jmp 0x10003863
mov esi, dword [ebp - 0x78]
mov edi, dword [ebp - 0x7c]
call fcn.100184da
push eax
push esi
push edi
lea ecx, [ebp - 0x38]
call fcn.100012fd
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x20]
call fcn.100015cc
mov ecx, dword [ebp - 0x38]
mov byte [ebp - 4], 3
lea ecx, [ecx - 0x10]
call fcn.10005120
push dword [ebp - 0x60]
lea ecx, [ebp - 0x40]
call fcn.10001434
push eax
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 5
call fcn.100015cc
mov ecx, dword [ebp - 0x40]
mov byte [ebp - 4], 3
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 dword [ebp - 0x28], eax
test eax, eax
je 0x100038b0
push 4
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x44], ebx
push ecx
push 0x58
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
mov edi, dword [ebp - 0x24]
mov esi, dword [ebp - 0x20]
test eax, eax
je 0x10003975
push ebx
push dword [ebp - 0x74]
push esi
push dword [ebp - 0x28]
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov dword [ebp - 0x34], eax
test eax, eax
je 0x10003975
cmp dword [ebp - 0x80], 2
mov edx, 0x800000
mov ecx, ebx
cmove ecx, edx
push ecx
push ebx
push ebx
push ebx
push edi
push 0x1004ebfc
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x10003962
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x10003941
push ebx
push dword [ebp - 0x18]
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x10003941
push 0x2f
pop eax
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x30], eax
push ebx
lea ecx, [ebp - 0x14]
push ecx
push ebx
push ebx
push eax
push dword [ebp - 0x18]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1000368a
mov eax, dword [ebp - 0x14]
xor ecx, ecx
push 2
shr eax, 1
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10017f9b
pop ecx
push ebx
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x2c], eax
push ecx
push eax
push ebx
push dword [ebp - 0x30]
push dword [ebp - 0x18]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
cmp dword [ebp - 0x14], 0
jne 0x100036a9
mov ecx, dword [ebp - 0x3c]
push 0x21
pop eax
push 2
inc ecx
mov dword [ebp - 0x30], eax
pop edx
mov dword [ebp - 0x3c], ecx
cmp ecx, edx
jb 0x1000363e
jmp 0x10003941
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x48]
call fcn.10001434
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 6
call fcn.100015cc
mov ecx, dword [ebp - 0x48]
mov byte [ebp - 4], 3
lea ecx, [ecx - 0x10]
call fcn.10005120
push dword [ebp - 0x2c]
call fcn.10017fa4
cmp dword [ebp - 0x14], 0
pop ecx
je 0x10003941
cmp dword [ebp - 0x30], 0x21
jne 0x10003935
push ebx
push 0x1004eb90
lea ecx, [ebp - 0x10]
call fcn.10002cad
cmp eax, 0xffffffff
je 0x100037ab
push ebx
push 0x1004ea58
lea ecx, [ebp - 0x10]
call fcn.10002cad
cmp eax, 0xffffffff
je 0x100037ab
push ebx
push str..exe_
lea ecx, [ebp - 0x10]
call fcn.10002cad
lea ecx, [ebp - 0x10]
push ebx
cmp eax, 0xffffffff
je 0x1000375e
push str..exe_
call fcn.10002cad
add eax, 4
lea ecx, [ebp - 0x10]
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.100041dd
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 7
call fcn.100015cc
mov ecx, dword [ebp - 0x4c]
jmp 0x1000379f
push str..msi_
call fcn.10002cad
cmp eax, 0xffffffff
je 0x100038ec
push ebx
push str..msi_
lea ecx, [ebp - 0x10]
call fcn.10002cad
add eax, 4
lea ecx, [ebp - 0x10]
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.100041dd
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 8
call fcn.100015cc
mov ecx, dword [ebp - 0x50]
lea ecx, [ecx - 0x10]
mov byte [ebp - 4], 3
call fcn.10005120
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
push eax
lea ecx, [ebp - 0x1c]
call fcn.10001434
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 9
call fcn.10004c60
push str..exe
push dword [ebp - 0x1c]
call fcn.10005a20
pop ecx
pop ecx
test eax, eax
je 0x10003918
push str..msi
push dword [ebp - 0x1c]
call fcn.10005a20
pop ecx
pop ecx
test eax, eax
je 0x10003918
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp + 8]
call fcn.100015cc
push dword [ebp - 0x18]
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
push dword [ebp - 0x34]
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
push dword [ebp - 0x28]
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx - 0x10]
call fcn.10005120
lea ecx, [edi - 0x10]
lea edi, [esi - 0x10]
mov esi, dword [ebp - 0x10]
add esi, 0xfffffff0
call fcn.10005120
mov ecx, edi
call fcn.10005120
mov ecx, esi
call fcn.10005120
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], ebx
call fcn.100014de
lea ecx, [ebp - 0x20]
call fcn.100014de
lea ecx, [ebp - 0x24]
call fcn.100014de
push 0x3c
pop esi
push esi
lea eax, [ebp - 0x8c]
mov byte [ebp - 4], 3
push ebx
push eax
call fcn.10029a90
or eax, 0xffffffff
mov dword [ebp - 0x8c], esi
add esp, 0xc
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x78], eax
lea ecx, [ebp - 0x8c]
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x54], 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
jne 0x10003532
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [ebp - 0x24]
mov ebx, eax
mov esi, dword [ebp - 0x20]
lea ecx, [edi - 0x10]
call fcn.10005120
lea ecx, [esi - 0x10]
call fcn.10005120
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.10005120
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.10005120
mov eax, ebx
call fcn.10026a9f
ret
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp + 8]
call fcn.100015cc
push dword [ebp - 0x18]
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
push dword [ebp - 0x34]
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
push dword [ebp - 0x28]
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
jmp 0x10003829
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x10]
push eax
call fcn.100015cc
mov ecx, dword [ebp - 0x1c]
mov byte [ebp - 4], 3
lea ecx, [ecx - 0x10]
call fcn.10005120
jmp 0x10003941
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x10]
push eax
call fcn.100015cc
mov ecx, dword [ebp + 0xc]
push 0x100000
push ebx
push ebx
call fcn.100031ff
push eax
call dword [sym.imp.SHLWAPI.dll_UrlUnescapeW]
push dword [ebp - 0x18]
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
jmp 0x1000396a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push dword [ebp - 0x34]
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
jmp 0x1000397d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push dword [ebp - 0x28]
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
jmp 0x100038be