Function at 0x405a40
Capabilities:
Initialize winhttp library
Prepare http request
Receive http response

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dccad
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x49c
push edi
mov ecx, 0x510279
call fcn.004b781d
xorps xmm0, xmm0
mov dword [ebp - 0x24], 0
movups xmmword [ebp - 0x34], xmm0
mov dword [ebp - 0x20], 0xf
mov byte [ebp - 0x34], 0
lea eax, [ebp - 0x11]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x4c], 0x690057
push ecx
lea edx, [ebp - 0x4c]
mov dword [ebp - 0x48], 0x48006e
push edx
lea ecx, [ebp - 0x9c]
mov dword [ebp - 0x44], 0x540054
mov dword [ebp - 0x40], 0x50
call fcn.00403ee0
push 0
push 0
push 0
push 0
push dword [eax]
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
lea ecx, [ebp - 0x9c]
mov edi, eax
call fcn.0040c330
test edi, edi
jne 0x405b0c
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
movups xmmword [eax], xmm0
mov dword [eax + 0x10], edi
movups xmm0, xmmword [ebp - 0x34]
mov dword [eax + 0x14], edi
pop edi
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x24]
movq qword [eax + 0x10], xmm0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x10]
push esi
test eax, eax
je 0x405b7d
imul eax, eax, 0x3e8
push eax
push eax
push eax
push eax
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
test eax, eax
jne 0x405b7d
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x34]
push eax
mov ecx, esi
call fcn.00402530
mov ecx, dword [ebp - 0x20]
cmp ecx, 0x10
jb 0x405b6b
mov edx, dword [ebp - 0x34]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x405b61
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405e6d
push ecx
push edx
call fcn.004b780f
add esp, 8
mov eax, esi
pop esi
pop edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0xc]
xorps xmm0, xmm0
mov ecx, edx
mov dword [ebp - 0x88], 0
movlpd qword [ebp - 0x80], xmm0
movlpd qword [ebp - 0x74], xmm0
movlpd qword [ebp - 0x6c], xmm0
movlpd qword [ebp - 0x64], xmm0
lea esi, [ecx + 2]
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x8c], 0x3c
mov dword [ebp - 0x84], 0xffffffff
mov dword [ebp - 0x78], 0xffffffff
mov dword [ebp - 0x5c], 0xffffffff
mov dword [ebp - 0x54], 0xffffffff
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405bd6
lea eax, [ebp - 0x8c]
sub ecx, esi
push eax
push 0
sar ecx, 1
push ecx
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
test eax, eax
jne 0x405c32
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
pop esi
pop edi
movups xmmword [eax], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x7c]
lea ecx, [ebp - 0x10]
call fcn.00403b40
mov eax, dword [ebp - 0x10]
mov byte [ebp - 4], 1
cmp dword [eax - 0xc], 0
jl 0x405ca6
push 0x4e4908
push eax
call fcn.004bac39
mov ecx, eax
add esp, 8
test ecx, ecx
je 0x405ca3
mov eax, dword [ebp - 0x10]
sub ecx, eax
sar ecx, 1
cmp ecx, 0xffffffff
je 0x405ca6
push ecx
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x10]
call fcn.004061a0
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.00404150
mov edx, dword [ebp - 0x1c]
or eax, 0xffffffff
mov byte [ebp - 4], 1
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x405ca3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x10]
push 0
push dword [ebp - 0x74]
push eax
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x405d09
mov esi, dword [ebp + 8]
xorps xmm0, xmm0
mov edx, dword [ebp - 0x10]
mov byte [ebp - 4], al
add edx, 0xfffffff0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 0xf
mov byte [esi], al
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x405b6b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
pop edi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov ecx, 0x1bb
mov dword [ebp - 0x3c], 0x450047
xor esi, esi
mov dword [ebp - 0x38], 0x54
cmp cx, word [ebp - 0x74]
lea edx, [ebp - 0x3c]
mov eax, 0x800000
lea ecx, [ebp - 0x34]
cmove esi, eax
lea eax, [ebp - 0x11]
push eax
push ecx
push edx
lea ecx, [ebp - 0xa8]
call fcn.00403ee0
push esi
push 0
push 0
push 0
push dword [ebp - 0x60]
push dword [eax]
push dword [ebp - 0x1c]
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
lea ecx, [ebp - 0xa8]
mov esi, eax
call fcn.0040c330
test esi, esi
jne 0x405d89
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x34]
push eax
mov ecx, esi
call fcn.00402530
lea ecx, [ebp - 0x10]
call fcn.00403fc0
jmp 0x405b37
push 4
lea eax, [ebp - 0x50]
mov dword [ebp - 0x50], 0x3300
push eax
push 0x1f
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
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 0x405dc4
push esi
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call esi
push edi
call esi
jmp 0x405d6e
push 0
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x405ddf
push esi
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call esi
push edi
call esi
jmp 0x405d6e
mov dword [ebp - 0x18], 0
lea eax, [ebp - 0x18]
push eax
push 0x400
lea eax, [ebp - 0x4a8]
push eax
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x405e19
push dword [ebp - 0x18]
lea eax, [ebp - 0x4a8]
push eax
lea ecx, [ebp - 0x34]
call fcn.0040c440
cmp dword [ebp - 0x18], 0
ja 0x405de6
push esi
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call esi
push edi
call esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x34]
push eax
mov ecx, esi
call fcn.00402530
lea ecx, [ebp - 0x10]
call fcn.00403fc0
mov ecx, dword [ebp - 0x20]
cmp ecx, 0x10
jb 0x405b6b
mov edx, dword [ebp - 0x34]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x405b61
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x405b61
call fcn.004be73f
int3