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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49edbd
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x49c
mov dword [ebp - 0x10], 0
mov ecx, 0x4d5279
call fcn.0047b83a
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x6c], 0
lea ecx, [ebp - 0x50]
call fcn.00403130
mov dword [ebp - 4], 0
push 0
push 0
push 0
push 0
push 0x4a5e18
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x40986b
lea eax, [ebp - 0x50]
push eax
mov ecx, dword [ebp + 8]
call fcn.00403060
mov ecx, dword [ebp - 0x10]
or ecx, 1
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x50]
call fcn.00403360
mov eax, dword [ebp + 8]
jmp 0x409c43
cmp dword [ebp + 0x10], 0
je 0x4098c5
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 0x4098c5
lea edx, [ebp - 0x50]
push edx
mov ecx, dword [ebp + 8]
call fcn.00403060
mov eax, dword [ebp - 0x10]
or eax, 1
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x50]
call fcn.00403360
mov eax, dword [ebp + 8]
jmp 0x409c43
push 0x3c
push 0
lea ecx, [ebp - 0xa8]
push ecx
call fcn.0047e8a0
add esp, 0xc
push 0x3c
push 0
lea edx, [ebp - 0xa8]
push edx
call fcn.0047e8a0
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 0x409926
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 0x40998e
push 0x4a58a5
mov ecx, dword [ebp + 8]
call fcn.004030b0
mov edx, dword [ebp - 0x10]
or edx, 1
mov dword [ebp - 0x10], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x50]
call fcn.00403360
mov eax, dword [ebp + 8]
jmp 0x409c43
mov eax, dword [ebp - 0x98]
push eax
lea ecx, [ebp - 0x18]
call fcn.004067e0
mov byte [ebp - 4], 1
push 0
push 0x4a5e40
lea ecx, [ebp - 0x18]
call fcn.00408c00
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0xffffffff
je 0x4099ee
mov ecx, dword [ebp - 0x30]
push ecx
lea edx, [ebp - 0x64]
push edx
lea ecx, [ebp - 0x18]
call fcn.0040a0c0
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.00407340
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x64]
call fcn.00407090
push 0
movzx edx, word [ebp - 0x90]
push edx
lea ecx, [ebp - 0x18]
call fcn.004074e0
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 0x409a4d
push 0x4a58a6
mov ecx, dword [ebp + 8]
call fcn.004030b0
mov ecx, dword [ebp - 0x10]
or ecx, 1
mov dword [ebp - 0x10], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00407090
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x50]
call fcn.00403360
mov eax, dword [ebp + 8]
jmp 0x409c43
mov dword [ebp - 0x34], 0
movzx edx, word [ebp - 0x90]
cmp edx, 0x1bb
jne 0x409a6a
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 0x4a5e44
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 0x409ad2
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.00403060
mov edx, dword [ebp - 0x10]
or edx, 1
mov dword [ebp - 0x10], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00407090
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x50]
call fcn.00403360
mov eax, dword [ebp + 8]
jmp 0x409c43
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 0x409b56
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.00403060
mov eax, dword [ebp - 0x10]
or eax, 1
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00407090
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x50]
call fcn.00403360
mov eax, dword [ebp + 8]
jmp 0x409c43
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 0x409bb7
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.00403060
mov edx, dword [ebp - 0x10]
or edx, 1
mov dword [ebp - 0x10], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00407090
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x50]
call fcn.00403360
mov eax, dword [ebp + 8]
jmp 0x409c43
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 0x409be3
jmp 0x409bfc
mov eax, dword [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x4a8]
push ecx
lea ecx, [ebp - 0x50]
call fcn.0040f4d0
cmp dword [ebp - 0x2c], 0
ja 0x409bbe
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.00403060
mov edx, dword [ebp - 0x10]
or edx, 1
mov dword [ebp - 0x10], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00407090
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x50]
call fcn.00403360
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret