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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d7258
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x50738c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x4c], 0
mov dword [ebp - 4], 1
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x44], 0
push 0
push 0
push 0
push 0
push 0x4f818c
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
je 0x409298
push 0
push 0x1bb
lea ecx, [ebp + 0xc]
call fcn.004020b0
push eax
mov eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov dword [ebp - 0x40], eax
push 0x7d0
push 0x7d0
push 0x7d0
push 0x7d0
mov ecx, dword [ebp - 0x3c]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x60], 0
cmp dword [ebp - 0x40], 0
je 0x4092c4
push 0x800000
push 0
push 0
push 0
lea ecx, [ebp + 0x24]
call fcn.004020b0
push eax
push 0x4f81a4
mov edx, dword [ebp - 0x40]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x50], str.Content_type:_application_json_r_n
mov eax, dword [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x38], 0
je 0x409307
push 0
push 0
push 0
push 0
push 0
push 0
mov ecx, dword [ebp - 0x38]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
mov dword [ebp - 0x44], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x6c], 0
cmp dword [ebp - 0x44], 0
je 0x40931c
push 0
mov edx, dword [ebp - 0x38]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
mov dword [ebp - 0x44], eax
lea ecx, [ebp - 0x2c]
call fcn.00403be0
mov byte [ebp - 4], 2
cmp dword [ebp - 0x44], 0
je 0x409441
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x38]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x409364
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4f81f8
call fcn.00407890
add esp, 8
jmp 0x409441
cmp dword [ebp - 0x30], 0
jne 0x40936f
jmp 0x409441
mov edx, dword [ebp - 0x30]
add edx, 1
push edx
call fcn.004b3fd6
add esp, 4
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jne 0x40939f
push 0x4f8220
call fcn.00407890
add esp, 4
jmp 0x409441
mov ecx, dword [ebp - 0x30]
add ecx, 1
push ecx
push 0
mov edx, dword [ebp - 0x34]
push edx
call fcn.004b6780
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x30]
push ecx
mov edx, dword [ebp - 0x34]
push edx
mov eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
jne 0x4093e4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4f8230
call fcn.00407890
add esp, 8
jmp 0x409401
mov ecx, dword [ebp - 0x34]
push ecx
push 0x4f81ac
call fcn.00407890
add esp, 8
mov edx, dword [ebp - 0x34]
push edx
lea ecx, [ebp - 0x2c]
call fcn.0040c350
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.004b3fe4
add esp, 4
cmp dword [ebp - 0x48], 0
jne 0x409422
mov dword [ebp - 0x58], 0
jmp 0x40942f
mov dword [ebp - 0x34], 0x8123
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x58], edx
cmp dword [ebp - 0x14], 0
jne 0x409437
jmp 0x409441
cmp dword [ebp - 0x30], 0
ja 0x409332
cmp dword [ebp - 0x38], 0
je 0x409451
mov eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
cmp dword [ebp - 0x40], 0
je 0x409461
mov ecx, dword [ebp - 0x40]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
cmp dword [ebp - 0x3c], 0
je 0x409471
mov edx, dword [ebp - 0x3c]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp + 8]
call fcn.0040c380
mov ecx, dword [ebp - 0x4c]
or ecx, 1
mov dword [ebp - 0x4c], ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.00402340
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.004021b0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x24]
call fcn.004021b0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b3f64
mov esp, ebp
pop ebp
ret