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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4eea50
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4ec
mov dword [ebp - 0x10], 0
mov ecx, 0x52429a
call fcn.004c6bbd
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x94], 0
lea ecx, [ebp - 0x5c]
call fcn.004024f0
mov dword [ebp - 4], 0
mov eax, 0x57
mov word [ebp - 0x70], ax
mov ecx, 0x69
mov word [ebp - 0x6e], cx
mov edx, 0x6e
mov word [ebp - 0x6c], dx
mov eax, 0x48
mov word [ebp - 0x6a], ax
mov ecx, 0x54
mov word [ebp - 0x68], cx
mov edx, 0x54
mov word [ebp - 0x66], dx
mov eax, 0x50
mov word [ebp - 0x64], ax
xor ecx, ecx
mov word [ebp - 0x62], cx
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x25]
call fcn.004063b0
push eax
lea edx, [ebp - 0x60]
push edx
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0xf0]
call fcn.00406b20
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [eax]
push edx
lea ecx, [ebp - 0xdc]
call fcn.00406d10
mov dword [ebp - 0x74], eax
mov ecx, dword [ebp - 0x74]
call fcn.00415e30
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0xdc]
call fcn.00407960
cmp dword [ebp - 0x1c], 0
jne 0x40b163
lea eax, [ebp - 0x5c]
push eax
mov ecx, dword [ebp + 8]
call fcn.004024a0
mov ecx, dword [ebp - 0x10]
or ecx, 1
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x5c]
call fcn.00402610
mov eax, dword [ebp + 8]
jmp 0x40b5bd
cmp dword [ebp + 0x10], 0
je 0x40b1bd
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 0x40b1bd
lea edx, [ebp - 0x5c]
push edx
mov ecx, dword [ebp + 8]
call fcn.004024a0
mov eax, dword [ebp - 0x10]
or eax, 1
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x5c]
call fcn.00402610
mov eax, dword [ebp + 8]
jmp 0x40b5bd
push 0x3c
push 0
lea ecx, [ebp - 0xd0]
push ecx
call fcn.004cb140
add esp, 0xc
push 0x3c
push 0
lea edx, [ebp - 0xd0]
push edx
call fcn.004cb140
add esp, 0xc
mov dword [ebp - 0xd0], 0x3c
mov dword [ebp - 0xc8], 0xffffffff
mov dword [ebp - 0xbc], 0xffffffff
mov dword [ebp - 0xa0], 0xffffffff
mov dword [ebp - 0x98], 0xffffffff
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
add ecx, 2
mov dword [ebp - 0x78], ecx
mov edx, dword [ebp - 0x20]
mov ax, word [edx]
mov word [ebp - 0x28], ax
add dword [ebp - 0x20], 2
cmp word [ebp - 0x28], 0
jne 0x40b224
mov ecx, dword [ebp - 0x20]
sub ecx, dword [ebp - 0x78]
sar ecx, 1
mov dword [ebp - 0x7c], ecx
lea edx, [ebp - 0xd0]
push edx
push 0
mov eax, dword [ebp - 0x7c]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
test eax, eax
jne 0x40b28c
push 0x4f692b
mov ecx, dword [ebp + 8]
call fcn.004064f0
mov edx, dword [ebp - 0x10]
or edx, 1
mov dword [ebp - 0x10], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x5c]
call fcn.00402610
mov eax, dword [ebp + 8]
jmp 0x40b5bd
mov eax, dword [ebp - 0xc0]
push eax
lea ecx, [ebp - 0x18]
call fcn.00406160
mov byte [ebp - 4], 1
push 0
push 0x4f6c94
lea ecx, [ebp - 0x18]
call fcn.0040a320
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0xffffffff
je 0x40b2f8
mov ecx, dword [ebp - 0x30]
push ecx
lea edx, [ebp - 0x88]
push edx
lea ecx, [ebp - 0x18]
call fcn.0040bce0
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x84], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x84]
push ecx
lea ecx, [ebp - 0x18]
call fcn.00407eb0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x88]
call fcn.00407640
push 0
movzx edx, word [ebp - 0xb8]
push edx
lea ecx, [ebp - 0x18]
call fcn.004084d0
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 0x40b357
push 0x4f6946
mov ecx, dword [ebp + 8]
call fcn.004064f0
mov ecx, dword [ebp - 0x10]
or ecx, 1
mov dword [ebp - 0x10], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00407640
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x5c]
call fcn.00402610
mov eax, dword [ebp + 8]
jmp 0x40b5bd
mov dword [ebp - 0x34], 0
movzx edx, word [ebp - 0xb8]
cmp edx, 0x1bb
jne 0x40b374
mov dword [ebp - 0x34], 0x800000
mov eax, 0x47
mov word [ebp - 0x44], ax
mov ecx, 0x45
mov word [ebp - 0x42], cx
mov edx, 0x54
mov word [ebp - 0x40], dx
xor eax, eax
mov word [ebp - 0x3e], ax
mov ecx, dword [ebp - 0x34]
push ecx
push 0
push 0
push 0
mov edx, dword [ebp - 0xa4]
push edx
lea ecx, [ebp - 0x26]
call fcn.004063b0
push eax
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x44]
push ecx
lea ecx, [ebp - 0xf8]
call fcn.00406b20
mov edx, dword [eax + 4]
push edx
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0xe8]
call fcn.00406d10
mov dword [ebp - 0x8c], eax
mov ecx, dword [ebp - 0x8c]
call fcn.00415e30
push eax
mov ecx, dword [ebp - 0x38]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0xe8]
call fcn.00407960
cmp dword [ebp - 0x14], 0
jne 0x40b446
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
lea eax, [ebp - 0x5c]
push eax
mov ecx, dword [ebp + 8]
call fcn.004024a0
mov ecx, dword [ebp - 0x10]
or ecx, 1
mov dword [ebp - 0x10], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00407640
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x5c]
call fcn.00402610
mov eax, dword [ebp + 8]
jmp 0x40b5bd
mov dword [ebp - 0x90], 0x3300
push 4
lea edx, [ebp - 0x90]
push edx
push 0x1f
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
push 0
push 0
push 0
push 0
push 0
push 0
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x40b4d0
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 - 0x5c]
push ecx
mov ecx, dword [ebp + 8]
call fcn.004024a0
mov edx, dword [ebp - 0x10]
or edx, 1
mov dword [ebp - 0x10], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00407640
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x5c]
call fcn.00402610
mov eax, dword [ebp + 8]
jmp 0x40b5bd
push 0
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x40b531
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
lea eax, [ebp - 0x5c]
push eax
mov ecx, dword [ebp + 8]
call fcn.004024a0
mov ecx, dword [ebp - 0x10]
or ecx, 1
mov dword [ebp - 0x10], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00407640
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x5c]
call fcn.00402610
mov eax, dword [ebp + 8]
jmp 0x40b5bd
mov dword [ebp - 0x2c], 0
lea edx, [ebp - 0x2c]
push edx
push 0x400
lea eax, [ebp - 0x4f8]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x40b55d
jmp 0x40b576
mov edx, dword [ebp - 0x2c]
push edx
lea eax, [ebp - 0x4f8]
push eax
lea ecx, [ebp - 0x5c]
call fcn.004158c0
cmp dword [ebp - 0x2c], 0
ja 0x40b538
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
lea eax, [ebp - 0x5c]
push eax
mov ecx, dword [ebp + 8]
call fcn.004024a0
mov ecx, dword [ebp - 0x10]
or ecx, 1
mov dword [ebp - 0x10], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00407640
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x5c]
call fcn.00402610
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret