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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d816d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x464
push edi
mov ecx, 0x5100a3
call fcn.004b532d
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
push 0
push 0
push 0
push 0
push str.WinHTTP_Example_1.0
mov dword [ebp - 4], 0
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov edi, eax
test edi, edi
jne 0x40545d
mov eax, dword [ebp + 8]
movups xmm0, xmmword [ebp - 0x2c]
mov dword [eax], edi
mov dword [eax + 0x10], edi
mov dword [eax + 0x14], edi
movups xmmword [eax], xmm0
pop edi
movq xmm0, qword [ebp - 0x1c]
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 0x4054ce
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 0x4054ce
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x2c]
push eax
mov ecx, esi
call fcn.00402380
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jb 0x4054bc
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4054b2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40577b
push edx
push ecx
call fcn.004b531f
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 - 0x6c], 0
movlpd qword [ebp - 0x64], xmm0
movlpd qword [ebp - 0x58], xmm0
movlpd qword [ebp - 0x50], xmm0
movlpd qword [ebp - 0x48], xmm0
lea esi, [ecx + 2]
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x70], 0x3c
mov dword [ebp - 0x68], 0xffffffff
mov dword [ebp - 0x5c], 0xffffffff
mov dword [ebp - 0x40], 0xffffffff
mov dword [ebp - 0x38], 0xffffffff
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405520
lea eax, [ebp - 0x70]
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 0x405575
mov eax, dword [ebp + 8]
pop esi
pop edi
mov dword [eax], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov dword [eax + 0x10], 0
mov byte [eax], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x60]
lea ecx, [ebp - 0x10]
call fcn.00403700
mov eax, dword [ebp - 0x10]
mov byte [ebp - 4], 1
cmp dword [eax - 0xc], 0
jl 0x4055e9
push 0x4e0304
push eax
call fcn.004b87bc
mov ecx, eax
add esp, 8
test ecx, ecx
je 0x4055e6
mov eax, dword [ebp - 0x10]
sub ecx, eax
sar ecx, 1
cmp ecx, 0xffffffff
je 0x4055e9
push ecx
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x10]
call fcn.004057c0
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.00403b80
mov edx, dword [ebp - 0x30]
or eax, 0xffffffff
mov byte [ebp - 4], 1
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4055e6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x10]
push 0
push dword [ebp - 0x58]
push eax
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov ecx, eax
test ecx, ecx
jne 0x405646
mov esi, dword [ebp + 8]
mov byte [ebp - 4], al
mov dword [esi], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 0xf
mov byte [esi], al
mov dword [esi + 0x10], eax
mov byte [esi], al
or eax, 0xffffffff
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4054bc
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
xor eax, eax
mov esi, 0x1bb
cmp si, word [ebp - 0x58]
mov edx, 0x800000
cmove eax, edx
push eax
push 0
push 0
push 0
push dword [ebp - 0x44]
push 0x4e0308
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov esi, eax
test esi, esi
jne 0x405697
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x2c]
push eax
mov ecx, esi
call fcn.00402380
lea ecx, [ebp - 0x10]
call fcn.00403a30
jmp 0x405488
push 4
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], 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 0x4056d2
push esi
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call esi
push edi
call esi
jmp 0x40567c
push 0
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x4056ed
push esi
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call esi
push edi
call esi
jmp 0x40567c
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x14]
push eax
push 0x400
lea eax, [ebp - 0x470]
push eax
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x405727
push dword [ebp - 0x14]
lea eax, [ebp - 0x470]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040a4f0
cmp dword [ebp - 0x14], 0
ja 0x4056f4
push esi
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call esi
push edi
call esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x2c]
push eax
mov ecx, esi
call fcn.00402380
lea ecx, [ebp - 0x10]
call fcn.00403a30
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jb 0x4054bc
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4054b2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4054b2
call fcn.004bba0f
int3