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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x447ae0
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x458ad0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x54], esi
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x50], esp
xor ebx, ebx
push 0xffffffffffffffff
mov dword [ebp - 4], ebx
push ebx
lea eax, [ebp + 8]
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
push eax
mov byte [ecx + 4], bl
call fcn.00403f10
lea edi, [ebp - 0x48]
call fcn.00416ea0
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x50], esp
push 0xffffffffffffffff
mov byte [ebp - 4], 1
push ebx
lea edx, [ebp + 8]
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
push edx
mov byte [ecx + 4], bl
call fcn.00403f10
lea edi, [ebp - 0x2c]
call fcn.00416fc0
cmp dword [ebp - 0x30], 0x10
jb 0x417190
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x4c], eax
cmp eax, ebx
jne 0x417196
mov dword [ebp - 0x50], ebx
jmp 0x4171df
lea eax, [ebp - 0x44]
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x4c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
cmp esi, 0x3fffffff
jg 0x4171d7
lea eax, [esi + esi]
call fcn.0042a0b0
mov edi, esp
cmp edi, ebx
je 0x4171d7
mov eax, dword [ebp - 0x4c]
push esi
push edi
push 0xffffffffffffffff
push eax
push ebx
xor edx, edx
push 3
mov word [edi], dx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
neg eax
sbb eax, eax
and eax, edi
jmp 0x4171d9
xor eax, eax
mov esi, dword [ebp - 0x54]
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x14], 0x10
jb 0x4171f4
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x4c], eax
cmp eax, ebx
jne 0x4171fa
mov dword [ebp - 0x4c], ebx
jmp 0x417243
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x4c], ecx
mov edx, dword [ebp - 0x4c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
cmp esi, 0x3fffffff
jg 0x41723b
lea eax, [esi + esi]
call fcn.0042a0b0
mov edi, esp
cmp edi, ebx
je 0x41723b
mov ecx, dword [ebp - 0x4c]
push esi
push edi
push 0xffffffffffffffff
push ecx
push ebx
xor eax, eax
push 3
mov word [edi], ax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
neg eax
sbb eax, eax
and eax, edi
jmp 0x41723d
xor eax, eax
mov esi, dword [ebp - 0x54]
mov dword [ebp - 0x4c], eax
push ebx
push ebx
push ebx
push ebx
push str.Mozilla_5.0__compatible__MSIE_9.0__Windows_NT_6.1__WOW64__Trident_5.0_
xor edi, edi
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [esi], eax
cmp eax, ebx
je 0x41726b
mov edx, dword [ebp - 0x50]
push ebx
push 0x50
push edx
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov dword [esi + 4], eax
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x417289
mov ecx, dword [ebp - 0x4c]
push ebx
push ebx
push ebx
push ebx
push ecx
push 0x44f548
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov dword [esi + 8], eax
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x4172b0
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
mov edi, eax
cmp edi, ebx
je 0x4172b0
mov edx, dword [esi + 8]
push ebx
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
mov edi, eax
mov esi, 0x10
cmp dword [ebp - 0x14], esi
jb 0x4172c6
mov eax, dword [ebp - 0x28]
push eax
call fcn.0041e1fe
add esp, 4
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], ebx
mov byte [ebp - 0x28], bl
cmp dword [ebp - 0x30], esi
jb 0x4172e4
mov ecx, dword [ebp - 0x44]
push ecx
call fcn.0041e1fe
add esp, 4
mov dword [ebp - 0x30], 0xf
mov dword [ebp - 0x34], ebx
mov byte [ebp - 0x44], bl
cmp dword [ebp + 0x20], esi
jb 0x417302
mov edx, dword [ebp + 0xc]
push edx
call fcn.0041e1fe
add esp, 4
mov eax, edi
lea esp, [ebp - 0x64]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00428e93
mov esp, ebp
pop ebp
ret 0x1c