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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x595d6b
mov eax, dword fs:[0]
push eax
sub esp, 0xcc
mov eax, dword [0x6001c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x10]
call fcn.00402220
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x34]
call fcn.00402220
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x30]
call fcn.00402220
mov byte [ebp - 4], 3
mov dword [ebp - 0x3c], 0x2f
push 0x3c
push 0
lea eax, [ebp - 0xd8]
push eax
call fcn.0056eec0
add esp, 0xc
mov dword [ebp - 0xd8], 0x3c
mov dword [ebp - 0xd0], 0xffffffff
mov dword [ebp - 0xc4], 0xffffffff
mov dword [ebp - 0xa8], 0xffffffff
mov dword [ebp - 0xa0], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00405ba0
mov dword [ebp - 0x48], eax
lea ecx, [ebp + 8]
call fcn.00402790
mov dword [ebp - 0x4c], eax
lea ecx, [ebp - 0xd8]
push ecx
push 0
mov edx, dword [ebp - 0x48]
push edx
mov eax, dword [ebp - 0x4c]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
test eax, eax
jne 0x40618f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x20], eax
jmp 0x406676
mov ecx, dword [ebp - 0xc4]
push ecx
mov edx, dword [ebp - 0xc8]
push edx
lea ecx, [ebp - 0x58]
call fcn.00402140
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x54], eax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x54]
push ecx
lea ecx, [ebp - 0x34]
call fcn.004025b0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x58]
call fcn.004023e0
mov edx, dword [ebp - 0xac]
push edx
lea ecx, [ebp - 0x64]
call fcn.004020c0
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x60], eax
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x60]
push ecx
lea ecx, [ebp - 0x30]
call fcn.004025b0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x64]
call fcn.004023e0
push 0
push 0
push 0
push 0
push str.Mozilla_5.0__Windows_NT_10.0_
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x406228
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x20], eax
jmp 0x406676
mov dword [ebp - 0x68], 0
push 4
lea edx, [ebp - 0x68]
push edx
push 0x58
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x406253
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x20], eax
jmp 0x406676
push 0
movzx ecx, word [ebp - 0xc0]
push ecx
lea ecx, [ebp - 0x34]
call fcn.00402790
push eax
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x406287
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x20], eax
jmp 0x406676
mov dword [ebp - 0x44], 0
cmp dword [ebp - 0xcc], 2
jne 0x40629e
mov dword [ebp - 0x44], 0x800000
mov eax, dword [ebp - 0x44]
push eax
push 0
push 0
push 0
lea ecx, [ebp - 0x30]
call fcn.00402790
push eax
push 0x5a90a4
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x4062d7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x20], eax
jmp 0x406676
push 0
push 0
push 0
push 0
push 0
push 0
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x406305
push 0
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x40665e
mov dword [ebp - 0x40], 0
jmp 0x406321
mov ecx, dword [ebp - 0x40]
add ecx, 1
mov dword [ebp - 0x40], ecx
cmp dword [ebp - 0x40], 2
jae 0x4063e9
push 0
lea edx, [ebp - 0x28]
push edx
push 0
push 0
mov eax, dword [ebp - 0x3c]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x406392
mov eax, dword [ebp - 0x28]
shr eax, 1
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00436dcc
add esp, 4
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x38], eax
push 0
lea ecx, [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x38]
push edx
push 0
mov eax, dword [ebp - 0x3c]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x28], 0
je 0x4063dd
mov edx, dword [ebp - 0x38]
push edx
lea ecx, [ebp - 0x78]
call fcn.004020c0
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x74], eax
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x74]
push ecx
lea ecx, [ebp - 0x10]
call fcn.004025b0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x78]
call fcn.004023e0
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x7c], edx
mov eax, dword [ebp - 0x7c]
push eax
call fcn.00436dd5
add esp, 4
jmp 0x4063e9
mov dword [ebp - 0x3c], 0x21
jmp 0x406318
cmp dword [ebp - 0x28], 0
je 0x40665e
cmp dword [ebp - 0x3c], 0x21
jne 0x406652
push 0
push 0x5a9038
lea ecx, [ebp - 0x10]
call fcn.004050c0
cmp eax, 0xffffffff
je 0x406571
push 0
push 0x5a8f00
lea ecx, [ebp - 0x10]
call fcn.004050c0
cmp eax, 0xffffffff
je 0x406571
mov dword [ebp - 0x9c], 0xffffffff
push 0
push str..exe_
lea ecx, [ebp - 0x10]
call fcn.004050c0
cmp eax, 0xffffffff
je 0x4064a0
push 0
push str..exe_
lea ecx, [ebp - 0x10]
call fcn.004050c0
add eax, 4
push eax
lea ecx, [ebp - 0x88]
push ecx
lea ecx, [ebp - 0x10]
call fcn.004075b0
mov dword [ebp - 0x80], eax
mov edx, dword [ebp - 0x80]
mov dword [ebp - 0x84], edx
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x84]
push eax
lea ecx, [ebp - 0x10]
call fcn.004025b0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x88]
call fcn.004023e0
jmp 0x406571
push 0
push str..msi_
lea ecx, [ebp - 0x10]
call fcn.004050c0
cmp eax, 0xffffffff
je 0x40650c
push 0
push str..msi_
lea ecx, [ebp - 0x10]
call fcn.004050c0
add eax, 4
push eax
lea ecx, [ebp - 0x94]
push ecx
lea ecx, [ebp - 0x10]
call fcn.004075b0
mov dword [ebp - 0x8c], eax
mov edx, dword [ebp - 0x8c]
mov dword [ebp - 0x90], edx
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x90]
push eax
lea ecx, [ebp - 0x10]
call fcn.004025b0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x94]
call fcn.004023e0
jmp 0x406571
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp + 8]
call fcn.004025b0
cmp dword [ebp - 0x14], 0
je 0x406528
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
cmp dword [ebp - 0x1c], 0
je 0x406538
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
cmp dword [ebp - 0x18], 0
je 0x406548
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x30]
call fcn.004023e0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x34]
call fcn.004023e0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.004023e0
jmp 0x4060af
lea ecx, [ebp - 0x10]
call fcn.00402790
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
push eax
lea ecx, [ebp - 0x2c]
call fcn.004020c0
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x2c]
call fcn.00408440
push 0x5a8f24
lea edx, [ebp - 0x2c]
push edx
call fcn.00402670
add esp, 8
movzx eax, al
test eax, eax
jne 0x4065c5
push str..msi
lea ecx, [ebp - 0x2c]
push ecx
call fcn.00402670
add esp, 8
movzx edx, al
test edx, edx
je 0x4065d3
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.004025b0
jmp 0x406644
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp + 8]
call fcn.004025b0
cmp dword [ebp - 0x14], 0
je 0x4065ef
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
cmp dword [ebp - 0x1c], 0
je 0x4065ff
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
cmp dword [ebp - 0x18], 0
je 0x40660f
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2c]
call fcn.004023e0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x30]
call fcn.004023e0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x34]
call fcn.004023e0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.004023e0
jmp 0x4060af
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2c]
call fcn.004023e0
jmp 0x40665e
lea edx, [ebp - 0x10]
push edx
mov ecx, dword [ebp + 0xc]
call fcn.004025b0
push 0x100000
push 0
push 0
mov ecx, dword [ebp + 0xc]
call fcn.00405a40
push eax
call dword [sym.imp.SHLWAPI.dll_UrlUnescapeW]
cmp dword [ebp - 0x14], 0
je 0x406686
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
cmp dword [ebp - 0x1c], 0
je 0x406696
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
cmp dword [ebp - 0x18], 0
je 0x4066a6
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x98], eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x30]
call fcn.004023e0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x34]
call fcn.004023e0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.004023e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004023e0
mov eax, dword [ebp - 0x98]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret