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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dcd1d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x49c
push edi
mov ecx, 0x510279
call fcn.004b787d
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.00403f10
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.0040c550
test edi, edi
jne 0x405c0c
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 0x405c7d
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 0x405c7d
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 0x405c6b
mov edx, dword [ebp - 0x34]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x405c61
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405f6d
push ecx
push edx
call fcn.004b786f
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 0x405cd6
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 0x405d32
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.00403b70
mov eax, dword [ebp - 0x10]
mov byte [ebp - 4], 1
cmp dword [eax - 0xc], 0
jl 0x405da6
push 0x4e4908
push eax
call fcn.004bac99
mov ecx, eax
add esp, 8
test ecx, ecx
je 0x405da3
mov eax, dword [ebp - 0x10]
sub ecx, eax
sar ecx, 1
cmp ecx, 0xffffffff
je 0x405da6
push ecx
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x10]
call fcn.004062a0
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.00404180
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 0x405da3
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 0x405e09
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 0x405c6b
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.00403f10
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.0040c550
test esi, esi
jne 0x405e89
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.00403ff0
jmp 0x405c37
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 0x405ec4
push esi
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call esi
push edi
call esi
jmp 0x405e6e
push 0
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x405edf
push esi
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call esi
push edi
call esi
jmp 0x405e6e
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 0x405f19
push dword [ebp - 0x18]
lea eax, [ebp - 0x4a8]
push eax
lea ecx, [ebp - 0x34]
call fcn.0040c660
cmp dword [ebp - 0x18], 0
ja 0x405ee6
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.00403ff0
mov ecx, dword [ebp - 0x20]
cmp ecx, 0x10
jb 0x405c6b
mov edx, dword [ebp - 0x34]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x405c61
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x405c61
call fcn.004be79f
int3