Function at 0x406430
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 0x597a9b
mov eax, dword fs:[0]
push eax
sub esp, 0xcc
mov eax, dword [0x6031c0]
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.0056f490
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.00405f50
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 0x40653f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x20], eax
jmp 0x406a26
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 0x4065d8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x20], eax
jmp 0x406a26
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 0x406603
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x20], eax
jmp 0x406a26
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 0x406637
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x20], eax
jmp 0x406a26
mov dword [ebp - 0x44], 0
cmp dword [ebp - 0xcc], 2
jne 0x40664e
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 0x5ab18c
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 0x406687
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x20], eax
jmp 0x406a26
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 0x4066b5
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 0x406a0e
mov dword [ebp - 0x40], 0
jmp 0x4066d1
mov ecx, dword [ebp - 0x40]
add ecx, 1
mov dword [ebp - 0x40], ecx
cmp dword [ebp - 0x40], 2
jae 0x406799
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 0x406742
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.004373ac
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 0x40678d
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.004373b5
add esp, 4
jmp 0x406799
mov dword [ebp - 0x3c], 0x21
jmp 0x4066c8
cmp dword [ebp - 0x28], 0
je 0x406a0e
cmp dword [ebp - 0x3c], 0x21
jne 0x406a02
push 0
push 0x5ab120
lea ecx, [ebp - 0x10]
call fcn.00405470
cmp eax, 0xffffffff
je 0x406921
push 0
push 0x5aafe8
lea ecx, [ebp - 0x10]
call fcn.00405470
cmp eax, 0xffffffff
je 0x406921
mov dword [ebp - 0x9c], 0xffffffff
push 0
push str..exe_
lea ecx, [ebp - 0x10]
call fcn.00405470
cmp eax, 0xffffffff
je 0x406850
push 0
push str..exe_
lea ecx, [ebp - 0x10]
call fcn.00405470
add eax, 4
push eax
lea ecx, [ebp - 0x88]
push ecx
lea ecx, [ebp - 0x10]
call fcn.00407bd0
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 0x406921
push 0
push str..msi_
lea ecx, [ebp - 0x10]
call fcn.00405470
cmp eax, 0xffffffff
je 0x4068bc
push 0
push str..msi_
lea ecx, [ebp - 0x10]
call fcn.00405470
add eax, 4
push eax
lea ecx, [ebp - 0x94]
push ecx
lea ecx, [ebp - 0x10]
call fcn.00407bd0
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 0x406921
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp + 8]
call fcn.004025b0
cmp dword [ebp - 0x14], 0
je 0x4068d8
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
cmp dword [ebp - 0x1c], 0
je 0x4068e8
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
cmp dword [ebp - 0x18], 0
je 0x4068f8
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 0x40645f
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.00408a60
push 0x5ab00c
lea edx, [ebp - 0x2c]
push edx
call fcn.00402670
add esp, 8
movzx eax, al
test eax, eax
jne 0x406975
push str..msi
lea ecx, [ebp - 0x2c]
push ecx
call fcn.00402670
add esp, 8
movzx edx, al
test edx, edx
je 0x406983
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.004025b0
jmp 0x4069f4
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp + 8]
call fcn.004025b0
cmp dword [ebp - 0x14], 0
je 0x40699f
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
cmp dword [ebp - 0x1c], 0
je 0x4069af
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
cmp dword [ebp - 0x18], 0
je 0x4069bf
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 0x40645f
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2c]
call fcn.004023e0
jmp 0x406a0e
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.00405df0
push eax
call dword [sym.imp.SHLWAPI.dll_UrlUnescapeW]
cmp dword [ebp - 0x14], 0
je 0x406a36
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
cmp dword [ebp - 0x1c], 0
je 0x406a46
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
cmp dword [ebp - 0x18], 0
je 0x406a56
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