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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x143c
call fcn.0040d2b0
mov eax, dword [0x43e080]
xor eax, ebp
mov dword [ebp - 4], eax
push 0xc
call fcn.0040c581
add esp, 4
mov dword [ebp - 0x1434], eax
cmp dword [ebp - 0x1434], 0
je 0x4075b0
push 0xc
mov ecx, dword [ebp - 0x1434]
call fcn.00403e50
mov ecx, dword [ebp - 0x1434]
call fcn.00409100
mov dword [ebp - 0x1438], eax
jmp 0x4075ba
mov dword [ebp - 0x1438], 0
mov eax, dword [ebp - 0x1438]
mov dword [ebp - 0x1420], eax
mov dword [ebp - 0x141c], 0
lea ecx, [ebp - 0x414]
push ecx
lea edx, [ebp - 0x141c]
push edx
lea eax, [ebp - 0x20c]
push eax
push 0x43a2f4
push 0x43a30c
mov ecx, dword [ebp + 8]
push ecx
call fcn.00407290
add esp, 8
add eax, 4
push eax
call fcn.00407250
add esp, 0x14
cmp eax, 3
jne 0x40760e
jmp 0x407687
lea edx, [ebp - 0x414]
push edx
lea eax, [ebp - 0x20c]
push eax
push 0x43a314
push 0x43a324
mov ecx, dword [ebp + 8]
push ecx
call fcn.00407290
add esp, 8
add eax, 4
push eax
call fcn.00407250
add esp, 0x10
cmp eax, 2
jne 0x40767c
push 0x43a32c
mov edx, dword [ebp + 8]
push edx
call fcn.00407290
add esp, 8
test eax, eax
je 0x407664
mov dword [ebp - 0x143c], 0x1bb
jmp 0x40766e
mov dword [ebp - 0x143c], 0x50
mov eax, dword [ebp - 0x143c]
mov dword [ebp - 0x141c], eax
jmp 0x407687
mov eax, dword [ebp - 0x1420]
jmp 0x407951
lea ecx, [ebp - 0x414]
push ecx
mov edx, dword [ebp - 0x141c]
push edx
lea eax, [ebp - 0x20c]
push eax
push str._v__send_request_____s:_i__Path___s__n
call fcn.004071e0
add esp, 0x10
mov dword [ebp - 0x1428], 0
mov dword [ebp - 0x142c], 0
mov dword [ebp - 0x1424], 0
push 0
push 0
push 0
push 0
push 0x43a388
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [ebp - 0x1428], eax
push 0
movzx ecx, word [ebp - 0x141c]
push ecx
lea edx, [ebp - 0x20c]
push edx
mov eax, dword [ebp - 0x1428]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov dword [ebp - 0x142c], eax
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x414]
push ecx
push 0x43a3b0
mov edx, dword [ebp - 0x142c]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov dword [ebp - 0x1424], eax
push 0
push 0
push 0
push 0
push 0x43a3b8
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [ebp - 0x1428], eax
cmp dword [ebp - 0x1428], 0
jne 0x407758
mov eax, dword [ebp - 0x1420]
jmp 0x407951
push 0
movzx eax, word [ebp - 0x141c]
push eax
lea ecx, [ebp - 0x20c]
push ecx
mov edx, dword [ebp - 0x1428]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov dword [ebp - 0x142c], eax
cmp dword [ebp - 0x142c], 0
jne 0x40779d
mov eax, dword [ebp - 0x1428]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov eax, dword [ebp - 0x1420]
jmp 0x407951
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x414]
push ecx
push 0x43a3e0
mov edx, dword [ebp - 0x142c]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov dword [ebp - 0x1424], eax
cmp dword [ebp - 0x1424], 0
jne 0x4077f2
mov eax, dword [ebp - 0x142c]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov ecx, dword [ebp - 0x1428]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov eax, dword [ebp - 0x1420]
jmp 0x407951
cmp dword [ebp - 0x1424], 0
jne 0x407806
mov eax, dword [ebp - 0x1420]
jmp 0x407951
push 0
push 0
push 0
push 0
push 0
push 0
mov edx, dword [ebp - 0x1424]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
jne 0x40782e
mov eax, dword [ebp - 0x1420]
jmp 0x407951
push 0
mov eax, dword [ebp - 0x1424]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x40784c
mov eax, dword [ebp - 0x1420]
jmp 0x407951
push 0x1000
push 0
lea ecx, [ebp - 0x1414]
push ecx
call fcn.0040e340
add esp, 0xc
mov dword [ebp - 0x1418], 0x1000
cmp dword [ebp - 0x1418], 0x1000
jne 0x4078f0
lea edx, [ebp - 0x1418]
push edx
push 0x1000
lea eax, [ebp - 0x1414]
push eax
mov ecx, dword [ebp - 0x1424]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
jne 0x4078a7
mov eax, dword [ebp - 0x1420]
jmp 0x407951
mov dword [ebp - 0x1430], 0
jmp 0x4078c2
mov edx, dword [ebp - 0x1430]
add edx, 1
mov dword [ebp - 0x1430], edx
mov eax, dword [ebp - 0x1430]
cmp eax, dword [ebp - 0x1418]
jae 0x4078eb
mov ecx, dword [ebp - 0x1430]
lea edx, [ebp + ecx - 0x1414]
push edx
mov ecx, dword [ebp - 0x1420]
call fcn.004090e0
jmp 0x4078b3
jmp 0x40786c
cmp dword [ebp - 0x1424], 0
je 0x407906
mov eax, dword [ebp - 0x1424]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
cmp dword [ebp - 0x142c], 0
je 0x40791c
mov ecx, dword [ebp - 0x142c]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
cmp dword [ebp - 0x1428], 0
je 0x407932
mov edx, dword [ebp - 0x1428]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov ecx, dword [ebp - 0x1420]
call fcn.004090c0
push eax
push str._v__recv_payload__size___i__done._n
call fcn.004071e0
add esp, 8
mov eax, dword [ebp - 0x1420]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040c56e
mov esp, ebp
pop ebp
ret