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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e0fbd
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x49c
mov dword [ebp - 0x10], 0
mov ecx, 0x51719f
call fcn.004bd4ad
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x6c], 0
lea ecx, [ebp - 0x50]
call fcn.00403250
mov dword [ebp - 4], 0
push 0
push 0
push 0
push 0
push str.WinHTTP_Example_1.0
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x40972b
lea eax, [ebp - 0x50]
push eax
mov ecx, dword [ebp + 8]
call fcn.00403180
mov ecx, dword [ebp - 0x10]
or ecx, 1
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x50]
call fcn.00403480
mov eax, dword [ebp + 8]
jmp 0x409b03
cmp dword [ebp + 0x10], 0
je 0x409785
imul edx, dword [ebp + 0x10], 0x3e8
mov dword [ebp + 0x10], edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
test eax, eax
jne 0x409785
lea edx, [ebp - 0x50]
push edx
mov ecx, dword [ebp + 8]
call fcn.00403180
mov eax, dword [ebp - 0x10]
or eax, 1
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x50]
call fcn.00403480
mov eax, dword [ebp + 8]
jmp 0x409b03
push 0x3c
push 0
lea ecx, [ebp - 0xa8]
push ecx
call fcn.004c0800
add esp, 0xc
push 0x3c
push 0
lea edx, [ebp - 0xa8]
push edx
call fcn.004c0800
add esp, 0xc
mov dword [ebp - 0xa8], 0x3c
mov dword [ebp - 0xa0], 0xffffffff
mov dword [ebp - 0x94], 0xffffffff
mov dword [ebp - 0x78], 0xffffffff
mov dword [ebp - 0x70], 0xffffffff
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
add ecx, 2
mov dword [ebp - 0x54], ecx
mov edx, dword [ebp - 0x20]
mov ax, word [edx]
mov word [ebp - 0x26], ax
add dword [ebp - 0x20], 2
cmp word [ebp - 0x26], 0
jne 0x4097e6
mov ecx, dword [ebp - 0x20]
sub ecx, dword [ebp - 0x54]
sar ecx, 1
mov dword [ebp - 0x58], ecx
lea edx, [ebp - 0xa8]
push edx
push 0
mov eax, dword [ebp - 0x58]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
test eax, eax
jne 0x40984e
push 0x4e7826
mov ecx, dword [ebp + 8]
call fcn.004031d0
mov edx, dword [ebp - 0x10]
or edx, 1
mov dword [ebp - 0x10], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x50]
call fcn.00403480
mov eax, dword [ebp + 8]
jmp 0x409b03
mov eax, dword [ebp - 0x98]
push eax
lea ecx, [ebp - 0x18]
call fcn.00406860
mov byte [ebp - 4], 1
push 0
push 0x4e7d04
lea ecx, [ebp - 0x18]
call fcn.00408c80
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0xffffffff
je 0x4098ae
mov ecx, dword [ebp - 0x30]
push ecx
lea edx, [ebp - 0x64]
push edx
lea ecx, [ebp - 0x18]
call fcn.00409f80
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x60], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x60]
push ecx
lea ecx, [ebp - 0x18]
call fcn.004073c0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x64]
call fcn.00407110
push 0
movzx edx, word [ebp - 0x90]
push edx
lea ecx, [ebp - 0x18]
call fcn.00407560
push eax
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
jne 0x40990d
push 0x4e7827
mov ecx, dword [ebp + 8]
call fcn.004031d0
mov ecx, dword [ebp - 0x10]
or ecx, 1
mov dword [ebp - 0x10], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00407110
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x50]
call fcn.00403480
mov eax, dword [ebp + 8]
jmp 0x409b03
mov dword [ebp - 0x34], 0
movzx edx, word [ebp - 0x90]
cmp edx, 0x1bb
jne 0x40992a
mov dword [ebp - 0x34], 0x800000
mov eax, dword [ebp - 0x34]
push eax
push 0
push 0
push 0
mov ecx, dword [ebp - 0x7c]
push ecx
push 0x4e7d08
mov edx, dword [ebp - 0x38]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x409992
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
lea ecx, [ebp - 0x50]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00403180
mov edx, dword [ebp - 0x10]
or edx, 1
mov dword [ebp - 0x10], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00407110
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x50]
call fcn.00403480
mov eax, dword [ebp + 8]
jmp 0x409b03
mov dword [ebp - 0x68], 0x3300
push 4
lea eax, [ebp - 0x68]
push eax
push 0x1f
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
push 0
push 0
push 0
push 0
push 0
push 0
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x409a16
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
lea edx, [ebp - 0x50]
push edx
mov ecx, dword [ebp + 8]
call fcn.00403180
mov eax, dword [ebp - 0x10]
or eax, 1
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00407110
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x50]
call fcn.00403480
mov eax, dword [ebp + 8]
jmp 0x409b03
push 0
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x409a77
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
lea ecx, [ebp - 0x50]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00403180
mov edx, dword [ebp - 0x10]
or edx, 1
mov dword [ebp - 0x10], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00407110
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x50]
call fcn.00403480
mov eax, dword [ebp + 8]
jmp 0x409b03
mov dword [ebp - 0x2c], 0
lea eax, [ebp - 0x2c]
push eax
push 0x400
lea ecx, [ebp - 0x4a8]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x409aa3
jmp 0x409abc
mov eax, dword [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x4a8]
push ecx
lea ecx, [ebp - 0x50]
call fcn.0040f070
cmp dword [ebp - 0x2c], 0
ja 0x409a7e
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
lea ecx, [ebp - 0x50]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00403180
mov edx, dword [ebp - 0x10]
or edx, 1
mov dword [ebp - 0x10], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00407110
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x50]
call fcn.00403480
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret