Function at 0x41c09c
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, 0x20e
push 0
push 0
dec ecx
jne 0x41c0a5
push ecx
xchg dword [ebp - 4], ecx
push ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
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 0x41c828
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 ebx, eax
mov eax, dword [0x41e654]
cmp dword [eax], 0
jle 0x41c14c
push 0
push 0
lea ecx, [ebp - 0x1038]
mov eax, dword [0x41e648]
mov eax, dword [eax]
mov edx, ebx
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 0x41c838
call sub.WINHTTP.DLL_WinHttpOpen
mov dword [ebp - 0x20], eax
jmp 0x41c161
push 0
push 0
push 0
push 1
push 0x41c838
call sub.WINHTTP.DLL_WinHttpOpen
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x41c4dc
xor eax, eax
push ebp
push 0x41c4d5
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [ebp + 0xc], 0
je 0x41c186
mov ebx, 0x1bb
jmp 0x41c18b
mov ebx, 0x50
mov eax, dword [0x41e660]
mov eax, dword [eax]
push eax
mov eax, dword [0x41e660]
mov eax, dword [eax]
push eax
mov eax, dword [0x41e660]
mov eax, dword [eax]
push eax
mov eax, dword [0x41e660]
mov eax, dword [eax]
push eax
mov eax, dword [ebp - 0x20]
push eax
call sub.WINHTTP.DLL_WinHttpSetTimeouts
push 0
push ebx
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 0x41c4be
xor eax, eax
push ebp
push 0x41c4b7
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 0xc], 0
jne 0x41c20a
lea eax, [ebp - 0x18]
mov edx, 0x41c85c
call fcn.004023c8
jmp 0x41c217
lea eax, [ebp - 0x18]
mov edx, 0x41c868
call fcn.004023c8
cmp byte [ebp + 0xc], 0
je 0x41c224
mov ebx, 0x800000
jmp 0x41c229
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 0x41c4a0
xor eax, eax
push ebp
push 0x41c499
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.00406d74
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x41c47b
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x41c878
push dword [ebp - 4]
push 0x41c888
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, 0x41c894
call fcn.0040aecc
mov eax, dword [ebp - 0x10]
mov edx, 0x41c918
call fcn.0040aecc
mov eax, dword [ebp - 0x10]
mov edx, 0x41c9ac
call fcn.0040aecc
mov eax, dword [ebp - 0x10]
mov edx, 0x41c9e0
call fcn.0040aecc
push 0x41ca1c
push dword [ebp - 4]
push 0x41ca38
push 0x41c888
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, 0x41ca44
call fcn.0040aecc
mov eax, dword [ebp - 0x10]
mov edx, 0x41ca68
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 0x41c465
call fcn.00404bfc
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x41c45e
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov eax, dword [ebp - 0x28]
push eax
call sub.WINHTTP.DLL_WinHttpReceiveResponse
jmp 0x41c403
cmp dword [ebp - 0x1c], 0
je 0x41c420
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 0x41c3ec
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 0x41c465
mov eax, dword [ebp - 0x14]
call fcn.00408b90
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41c482
mov eax, dword [ebp - 0x10]
call fcn.00408b90
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41c4be
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 0x41c4dc
mov eax, dword [ebp - 0x20]
push eax
call sub.WINHTTP.DLL_WinHttpCloseHandle
ret
mov eax, dword [0x41e630]
cmp dword [eax], 0
jne 0x41c4f7
push 0xa
call sub.KERNEL32.DLL_Sleep
mov eax, dword [0x41e630]
cmp dword [eax], 0
je 0x41c4e6
mov eax, dword [0x41e678]
cmp byte [eax], 0
je 0x41c5fd
mov eax, dword [0x41e664]
push eax
call sub.KERNEL32.DLL_EnterCriticalSection
mov eax, dword [0x41e634]
dec dword [eax]
push 0x41caa0
mov eax, dword [0x41e670]
mov eax, dword [eax]
mov edx, dword [0x41e634]
sub eax, dword [edx]
lea edx, [ebp - 0x1060]
call fcn.0040b7fc
push dword [ebp - 0x1060]
push 0x41ca38
lea edx, [ebp - 0x1064]
mov eax, dword [0x41e670]
mov eax, dword [eax]
call fcn.0040b7fc
push dword [ebp - 0x1064]
push 0x41cab0
lea eax, [ebp - 0x105c]
mov edx, 5
call fcn.00402660
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]
xor ecx, ecx
call fcn.004071fc
lea edx, [ebp - 0x1068]
mov eax, dword [0x41e634]
mov eax, dword [eax]
call fcn.0040b7fc
mov eax, dword [ebp - 0x1068]
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, 3
call fcn.004071fc
mov eax, dword [0x41e634]
cmp dword [eax], 0
jne 0x41c5e6
call fcn.00414d78
mov eax, dword [0x41e664]
push eax
call sub.KERNEL32.DLL_LeaveCriticalSection
push 0
call sub.KERNEL32.DLL_ExitThread
jmp 0x41c7b4
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 [0x41cab4]
fdiv dword [0x41cab4]
add esp, 0xfffffff8
fstp qword [esp]
wait
lea edx, [ebp - 0x106c]
mov eax, 2
call fcn.00404114
lea eax, [ebp - 0x106c]
mov edx, 0x41cac0
call fcn.004025a8
mov eax, dword [ebp - 0x106c]
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 [0x41e674]
mov eax, dword [eax]
mov edx, dword [0x41e634]
sub eax, dword [edx]
lea edx, [ebp - 0x1074]
call fcn.0040b7fc
push dword [ebp - 0x1074]
push 0x41ca38
lea edx, [ebp - 0x1078]
mov eax, dword [0x41e60c]
mov eax, dword [eax]
mov eax, dword [eax + 0x1c]
call fcn.0040b7fc
push dword [ebp - 0x1078]
lea eax, [ebp - 0x1070]
mov edx, 3
call fcn.00402660
mov eax, dword [ebp - 0x1070]
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, 4
call fcn.004071fc
mov eax, dword [0x41e618]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
call fcn.0040ab94
call fcn.0041971c
mov ecx, eax
mov eax, dword [0x41e60c]
mov eax, dword [eax]
imul ecx, dword [eax + 0x1c]
mov eax, dword [0x41e618]
mov eax, dword [eax]
mov eax, dword [eax + 0x3c]
mov edx, 0x84060407
call fcn.0040825c
mov eax, dword [0x41e60c]
mov eax, dword [eax]
cmp dword [eax + 0x1c], 1
jle 0x41c77e
mov eax, dword [0x41e618]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
call fcn.0040ab94
call fcn.0041971c
mov ecx, eax
mov eax, dword [0x41e674]
mov eax, dword [eax]
mov edx, dword [0x41e634]
sub eax, dword [edx]
imul ecx, eax
mov eax, dword [0x41e618]
mov eax, dword [eax]
mov eax, dword [eax + 0x3c]
mov edx, 0x84020408
call fcn.0040729c
jmp 0x41c7a9
mov eax, dword [0x41e618]
mov eax, dword [eax]
mov eax, dword [eax + 0x3c]
mov edx, 0x84020408
call fcn.00407290
mov ecx, eax
inc ecx
mov eax, dword [0x41e618]
mov eax, dword [eax]
mov eax, dword [eax + 0x3c]
mov edx, 0x84020408
call fcn.0040729c
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 0x41c82f
lea eax, [ebp - 0x1078]
mov edx, 9
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