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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4234db
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xab0
mov eax, dword [0x42f040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xab4], edx
xorps xmm0, xmm0
mov dword [ebp - 0xa50], 0
xor eax, eax
mov dword [ebp - 0xa1c], 0
movups xmmword [ebp - 0xa4c], xmm0
mov dword [ebp - 0xa3c], 0
mov dword [ebp - 0xa38], 7
mov word [ebp - 0xa4c], ax
mov dword [ebp - 4], eax
movups xmmword [ebp - 0xa34], xmm0
mov dword [ebp - 0xa24], eax
mov dword [ebp - 0xa20], 7
mov word [ebp - 0xa34], ax
mov byte [ebp - 4], 1
cmp dword [ecx + 0x14], 7
mov dword [ebp - 0xa80], eax
mov dword [ebp - 0xa64], eax
lea eax, [ebp - 0x218]
mov dword [ebp - 0xa7c], eax
lea eax, [ebp - 0xa18]
mov dword [ebp - 0xa60], eax
mov eax, dword [ecx + 0x10]
movlpd qword [ebp - 0xa88], xmm0
movlpd qword [ebp - 0xa74], xmm0
movlpd qword [ebp - 0xa6c], xmm0
movlpd qword [ebp - 0xa58], xmm0
mov dword [ebp - 0xa8c], 0x3c
mov dword [ebp - 0xa78], pe_nt_image_headers32
mov dword [ebp - 0xa5c], 0x400
jbe 0x4025a4
mov ecx, dword [ecx]
lea edx, [ebp - 0xa8c]
push edx
push 0
push eax
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
test eax, eax
je 0x40278f
push dword [ebp - 0xa78]
xorps xmm0, xmm0
mov dword [ebp - 0xaa0], 0
push dword [ebp - 0xa7c]
lea ecx, [ebp - 0xab0]
mov dword [ebp - 0xa9c], 0
movups xmmword [ebp - 0xab0], xmm0
call fcn.00408ce0
lea eax, [ebp - 0xab0]
push eax
lea ecx, [ebp - 0xa4c]
call fcn.00407640
mov ecx, dword [ebp - 0xa9c]
cmp ecx, 7
jbe 0x402644
mov edx, dword [ebp - 0xab0]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40263a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4029d4
push ecx
push edx
call fcn.0040ad34
add esp, 8
push dword [ebp - 0xa5c]
xorps xmm0, xmm0
mov dword [ebp - 0xaa0], 0
push dword [ebp - 0xa60]
lea ecx, [ebp - 0xab0]
mov dword [ebp - 0xa9c], 0
movups xmmword [ebp - 0xab0], xmm0
call fcn.00408ce0
lea eax, [ebp - 0xab0]
push eax
lea ecx, [ebp - 0xa34]
call fcn.00407640
mov ecx, dword [ebp - 0xa9c]
cmp ecx, 7
jbe 0x4026cb
mov edx, dword [ebp - 0xab0]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4026c1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4029d4
push ecx
push edx
call fcn.0040ad34
add esp, 8
mov eax, dword [ebp - 0xa80]
movzx esi, word [ebp - 0xa74]
push 0
push 0
push 0
push 0
push str.Mozilla_5.0__Custom_Agent_
mov dword [ebp - 0xa98], eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov edi, eax
mov dword [ebp - 0xabc], edi
test edi, edi
je 0x40278f
cmp dword [ebp - 0xa38], 7
lea ecx, [ebp - 0xa4c]
push 0
cmova ecx, dword [ebp - 0xa4c]
push esi
push ecx
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov edx, eax
mov dword [ebp - 0xa94], edx
test edx, edx
jne 0x402735
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
jmp 0x40278f
cmp dword [ebp - 0xa20], 7
lea ecx, [ebp - 0xa34]
mov esi, 0x800000
cmova ecx, dword [ebp - 0xa34]
xor eax, eax
cmp dword [ebp - 0xa98], 2
cmove eax, esi
push eax
push 0
push 0
push 0
push ecx
push 0x42ba30
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov esi, eax
mov dword [ebp - 0xab8], esi
test esi, esi
jne 0x402836
push dword [ebp - 0xa94]
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call esi
push edi
call esi
mov byte [ebp - 0xa8d], 0
mov ecx, dword [ebp - 0xa20]
cmp ecx, 7
jbe 0x4027d6
mov edx, dword [ebp - 0xa34]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4027cc
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4029d4
push ecx
push edx
call fcn.0040ad34
add esp, 8
mov ecx, dword [ebp - 0xa38]
xor eax, eax
mov dword [ebp - 0xa24], 0
mov dword [ebp - 0xa20], 7
mov word [ebp - 0xa34], ax
cmp ecx, 7
jbe 0x4029b0
mov edx, dword [ebp - 0xa4c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4029a6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4029d4
jmp 0x4029a6
push 0
push 0
push 0
push 0
push 0
push 0
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
jne 0x402861
push esi
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call esi
push dword [ebp - 0xa94]
jmp 0x40278a
push 0
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x40284d
nop
lea eax, [ebp - 0xa50]
mov dword [ebp - 0xa50], 0
push eax
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x402981
mov eax, dword [ebp - 0xa50]
test eax, eax
je 0x402981
inc eax
push eax
call fcn.0040ad42
mov ecx, dword [ebp - 0xa50]
mov edi, eax
inc ecx
push ecx
push 0
push edi
call fcn.0040c560
add esp, 0x10
lea eax, [ebp - 0xa1c]
push eax
push dword [ebp - 0xa50]
push edi
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x402978
mov eax, dword [ebp - 0xa1c]
test eax, eax
je 0x402960
push 0
push 0
push eax
push edi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0xa98], eax
test eax, eax
jle 0x402960
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040ad42
add esp, 4
mov esi, eax
push dword [ebp - 0xa98]
push esi
push dword [ebp - 0xa1c]
push edi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [ebp - 0xa98]
xor ecx, ecx
push esi
mov word [esi + eax*2], cx
mov ecx, dword [ebp - 0xab4]
call fcn.00407d20
push esi
call fcn.0040ab02
mov esi, dword [ebp - 0xab8]
add esp, 4
push edi
call fcn.0040ab02
add esp, 4
cmp dword [ebp - 0xa50], 0
ja 0x402870
jmp 0x402981
push edi
call fcn.0040ab02
add esp, 4
push esi
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call esi
push dword [ebp - 0xa94]
call esi
push dword [ebp - 0xabc]
call esi
mov byte [ebp - 0xa8d], 1
jmp 0x402796
push ecx
push edx
call fcn.0040ad34
add esp, 8
mov al, byte [ebp - 0xa8d]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040aaf4
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.00411475
int3