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

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x20b
push 0
push 0
dec ecx
jne 0x41cacd
xchg dword [ebp - 4], ecx
push ebx
push esi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00402788
mov eax, dword [ebp - 8]
call fcn.00402788
mov eax, dword [ebp - 0xc]
call fcn.00402788
xor eax, eax
push ebp
push 0x41cfee
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00402330
call fcn.0040133c
mov eax, dword [0x41e654]
mov eax, dword [eax]
dec eax
call fcn.00401798
mov esi, eax
mov eax, dword [0x41e654]
cmp dword [eax], 0
jle 0x41cb77
push 0
push 0
lea ecx, [ebp - 0x1038]
mov eax, dword [0x41e648]
mov eax, dword [eax]
mov edx, esi
call fcn.0040c544
mov edx, dword [ebp - 0x1038]
lea eax, [ebp - 0x1034]
call fcn.00402b34
mov eax, dword [ebp - 0x1034]
call fcn.00402b44
push eax
push 3
push 0x41d000
call sub.WINHTTP.DLL_WinHttpOpen
mov dword [ebp - 0x20], eax
jmp 0x41cb8c
push 0
push 0
push 0
push 1
push 0x41d000
call sub.WINHTTP.DLL_WinHttpOpen
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x41ceeb
xor eax, eax
push ebp
push 0x41cee4
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [ebp + 0x10], 0
je 0x41cbb1
mov esi, 0x1bb
jmp 0x41cbb6
mov esi, 0x50
push ebx
push ebx
push ebx
push ebx
mov eax, dword [ebp - 0x20]
push eax
call sub.WINHTTP.DLL_WinHttpSetTimeouts
push 0
push esi
lea eax, [ebp - 0x103c]
mov edx, dword [ebp - 4]
call fcn.00402b34
mov eax, dword [ebp - 0x103c]
call fcn.00402b44
push eax
mov eax, dword [ebp - 0x20]
push eax
call sub.WINHTTP.DLL_WinHttpConnect
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x41cecd
xor eax, eax
push ebp
push 0x41cec6
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 0xc], 0
jne 0x41cc19
lea eax, [ebp - 0x18]
mov edx, 0x41d024
call fcn.004023c8
jmp 0x41cc26
lea eax, [ebp - 0x18]
mov edx, 0x41d030
call fcn.004023c8
cmp byte [ebp + 0x10], 0
je 0x41cc33
mov ebx, 0x800000
jmp 0x41cc38
mov ebx, pe_nt_image_headers32
push ebx
push 0
push 0
push 0
lea eax, [ebp - 0x1040]
mov edx, dword [ebp - 8]
call fcn.00402b34
mov eax, dword [ebp - 0x1040]
call fcn.00402b44
push eax
lea eax, [ebp - 0x1044]
mov edx, dword [ebp - 0x18]
call fcn.00402b34
mov eax, dword [ebp - 0x1044]
call fcn.00402b44
push eax
mov eax, dword [ebp - 0x24]
push eax
call sub.WINHTTP.DLL_WinHttpOpenRequest
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x41ceaf
xor eax, eax
push ebp
push 0x41cea8
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.00406d74
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x41ce8a
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x41d040
push dword [ebp - 4]
push 0x41d050
lea eax, [ebp - 0x1048]
mov edx, 3
call fcn.00402660
mov edx, dword [ebp - 0x1048]
mov eax, dword [ebp - 0x10]
call fcn.0040aecc
mov eax, dword [ebp - 0x10]
mov edx, 0x41d05c
call fcn.0040aecc
mov eax, dword [ebp - 0x10]
mov edx, 0x41d0e0
call fcn.0040aecc
mov eax, dword [ebp - 0x10]
mov edx, 0x41d174
call fcn.0040aecc
mov eax, dword [ebp - 0x10]
mov edx, 0x41d1a8
call fcn.0040aecc
push 0x41d1e4
push dword [ebp - 4]
push 0x41d200
push 0x41d050
lea eax, [ebp - 0x104c]
mov edx, 4
call fcn.00402660
mov edx, dword [ebp - 0x104c]
mov eax, dword [ebp - 0x10]
call fcn.0040aecc
mov eax, dword [ebp - 0x10]
mov edx, 0x41d20c
call fcn.0040aecc
mov eax, dword [ebp - 0x10]
mov edx, 0x41d230
call fcn.0040aecc
push 0x20000000
lea edx, [ebp - 0x1050]
mov eax, dword [ebp - 0x10]
call fcn.00406d98
mov eax, dword [ebp - 0x1050]
call fcn.004025a0
push eax
lea edx, [ebp - 0x1058]
mov eax, dword [ebp - 0x10]
call fcn.00406d98
mov edx, dword [ebp - 0x1058]
lea eax, [ebp - 0x1054]
call fcn.00402b34
mov eax, dword [ebp - 0x1054]
call fcn.00402b44
push eax
mov eax, dword [ebp - 0x28]
push eax
call sub.WINHTTP.DLL_WinHttpAddRequestHeaders
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0xc]
call fcn.004025a0
push eax
mov eax, dword [ebp - 0xc]
call fcn.004025a0
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0
mov eax, dword [ebp - 0x28]
push eax
call sub.WINHTTP.DLL_WinHttpSendRequest
test eax, eax
je 0x41ce74
call fcn.00404bfc
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x41ce6d
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov eax, dword [ebp - 0x28]
push eax
call sub.WINHTTP.DLL_WinHttpReceiveResponse
jmp 0x41ce12
cmp dword [ebp - 0x1c], 0
je 0x41ce2f
lea edx, [ebp - 0x102d]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x1c]
call fcn.00404a4c
lea eax, [ebp - 0x1c]
push eax
push 0x1001
lea eax, [ebp - 0x102d]
push eax
mov eax, dword [ebp - 0x28]
push eax
call sub.WINHTTP.DLL_WinHttpReadData
test eax, eax
jne 0x41cdfb
mov byte [ebp - 0x102d], 0
lea edx, [ebp - 0x102d]
mov eax, dword [ebp - 0x14]
mov ecx, 1
call fcn.00404a4c
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x14]
mov edx, dword [edx + 0x3c]
call fcn.0040251c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41ce74
mov eax, dword [ebp - 0x14]
call fcn.00408b90
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41ce91
mov eax, dword [ebp - 0x10]
call fcn.00408b90
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41cecd
mov eax, dword [ebp - 0x24]
push eax
call sub.WINHTTP.DLL_WinHttpCloseHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41ceeb
mov eax, dword [ebp - 0x20]
push eax
call sub.WINHTTP.DLL_WinHttpCloseHandle
ret
mov eax, dword [0x41e664]
push eax
call sub.KERNEL32.DLL_EnterCriticalSection
mov eax, dword [ebp + 8]
mov eax, dword [eax]
call fcn.004025a0
mov edx, dword [0x41e608]
add dword [edx], eax
mov eax, dword [0x41e608]
fild dword [eax]
fdiv dword [0x41d264]
fdiv dword [0x41d264]
add esp, 0xfffffff8
fstp qword [esp]
wait
lea edx, [ebp - 0x105c]
mov eax, 2
call fcn.00404114
lea eax, [ebp - 0x105c]
mov edx, 0x41d270
call fcn.004025a8
mov eax, dword [ebp - 0x105c]
push eax
mov eax, dword [0x41e618]
mov eax, dword [eax]
mov eax, dword [eax + 0x38]
call fcn.0040ab94
mov edx, eax
dec edx
mov eax, dword [0x41e618]
mov eax, dword [eax]
mov eax, dword [eax + 0x38]
mov ecx, 2
call fcn.004071fc
mov eax, dword [0x41e664]
push eax
call sub.KERNEL32.DLL_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41cff5
lea eax, [ebp - 0x105c]
mov edx, 2
call fcn.00402354
lea eax, [ebp - 0x1054]
call fcn.004029dc
lea eax, [ebp - 0x1050]
mov edx, 3
call fcn.00402354
lea eax, [ebp - 0x1044]
mov edx, 3
call fcn.004029f4
lea eax, [ebp - 0x1038]
call fcn.00402330
lea eax, [ebp - 0x1034]
call fcn.004029dc
lea eax, [ebp - 0x18]
call fcn.00402330
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00402354
ret