Function at 0x450ba0
Capabilities:
Check http status code
Initialize winhttp library
Prepare http request
Read http header
Receive http response

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d9c8b
mov eax, dword fs:[0]
push eax
sub esp, 0x130
mov eax, dword [0x50f52c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 2
xor esi, esi
mov dword [ebp - 0xd0], esi
mov dword [ebp - 0xc8], esi
mov dword [ebp - 0xcc], esi
mov byte [ebp - 4], 3
mov ebx, 7
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], esi
xor eax, eax
mov word [ebp - 0x2c], ax
mov byte [ebp - 4], 4
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x38], esi
xor ecx, ecx
mov word [ebp - 0x48], cx
mov byte [ebp - 4], 5
push esi
push 0x4eaa18
lea ecx, [ebp + 0x24]
call fcn.00433220
cmp eax, 0xffffffff
je 0x450ca2
push esi
push 0x4eaa18
lea ecx, [ebp + 0x24]
call fcn.00433220
push eax
push esi
lea edx, [ebp - 0xbc]
push edx
lea ecx, [ebp + 0x24]
call fcn.00430a10
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp - 0x30]
call fcn.00408c10
mov byte [ebp - 4], 5
lea ecx, [ebp - 0xbc]
call fcn.00490320
mov eax, dword [ebp + 0x38]
push eax
push esi
push 0x4eaa18
lea ecx, [ebp + 0x24]
call fcn.00433220
push eax
lea ecx, [ebp - 0xa0]
push ecx
lea ecx, [ebp + 0x24]
call fcn.00430a10
mov byte [ebp - 4], bl
push eax
lea ecx, [ebp - 0x4c]
call fcn.00408c10
mov byte [ebp - 4], 5
lea ecx, [ebp - 0xa0]
call fcn.00490320
jmp 0x450cbe
push 0xffffffffffffffff
push esi
lea edx, [ebp + 0x24]
push edx
lea ecx, [ebp - 0x30]
call fcn.00401750
push 0x4e25d8
lea ecx, [ebp - 0x4c]
call fcn.00409f50
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x54], esi
xor eax, eax
mov word [ebp - 0x64], ax
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x68]
push ecx
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0xf4], esp
lea edx, [ebp - 0x30]
push edx
call fcn.00401960
mov byte [ebp - 4], 9
mov byte [ebp - 4], 8
call fcn.0044ef30
push str.NETWORKACTION
lea ecx, [ebp - 0xa0]
cmp eax, esi
je 0x450d8d
call fcn.004019e0
mov byte [ebp - 4], 0xa
push 0x4eaa10
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x118]
push ecx
call fcn.00401b00
mov byte [ebp - 4], 0xb
lea edx, [ebp - 0x68]
push edx
push eax
lea eax, [ebp - 0x134]
push eax
call fcn.0040a680
mov bl, 0xc
mov byte [ebp - 4], bl
push 0x4eaa0c
push eax
lea ecx, [ebp - 0xbc]
push ecx
call fcn.00401b00
add esp, 0x24
mov byte [ebp - 4], 0xd
lea edx, [ebp - 0xa0]
push edx
push eax
call fcn.00419d40
mov byte [ebp - 4], bl
lea ecx, [ebp - 0xbc]
call fcn.00490320
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x134]
call fcn.00490320
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x118]
jmp 0x450dee
call fcn.004019e0
mov byte [ebp - 4], 0xe
lea eax, [ebp - 0x30]
push eax
push str.Unable_to_determine_the_IP_address_of
lea ecx, [ebp - 0x134]
push ecx
call fcn.00401a30
mov bl, 0xf
mov byte [ebp - 4], bl
push 0x4e253c
push eax
lea edx, [ebp - 0x118]
push edx
call fcn.00401b00
add esp, 0x18
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0xa0]
push ecx
push eax
call fcn.00419d40
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x118]
call fcn.00490320
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x134]
call fcn.00490320
mov byte [ebp - 4], 8
lea ecx, [ebp - 0xa0]
call fcn.00490320
mov edi, 8
cmp dword [ebp + 0x20], edi
mov eax, dword [ebp + 0xc]
jae 0x450e12
lea eax, [ebp + 0xc]
push esi
push esi
push esi
push esi
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov esi, eax
mov dword [ebp - 0xd0], esi
test esi, esi
je 0x45133a
push str.NETWORKACTION
lea ecx, [ebp - 0xbc]
call fcn.004019e0
mov bl, 0x11
mov byte [ebp - 4], bl
push str.Successfully_opened_an_HTTP_session.
lea ecx, [ebp - 0xa0]
call fcn.004019e0
mov byte [ebp - 4], 0x12
lea edx, [ebp - 0xbc]
push edx
lea eax, [ebp - 0xa0]
push eax
call fcn.00419d40
mov byte [ebp - 4], bl
lea ecx, [ebp - 0xa0]
call fcn.00490320
mov byte [ebp - 4], 8
lea ecx, [ebp - 0xbc]
call fcn.00490320
push 0x1388
push 0x1388
push 0x1388
push 0x1388
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
test eax, eax
je 0x45131a
push str.NETWORKACTION
lea ecx, [ebp - 0xa0]
call fcn.004019e0
mov bl, 0x13
mov byte [ebp - 4], bl
push str.Successfully_set_HTTP_session_timeout.
lea ecx, [ebp - 0xbc]
call fcn.004019e0
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0xa0]
push ecx
lea edx, [ebp - 0xbc]
push edx
call fcn.00419d40
mov byte [ebp - 4], bl
lea ecx, [ebp - 0xbc]
call fcn.00490320
mov byte [ebp - 4], 8
lea ecx, [ebp - 0xa0]
call fcn.00490320
cmp dword [ebp - 0x18], edi
mov eax, dword [ebp - 0x2c]
jae 0x450f0d
lea eax, [ebp - 0x2c]
push 0
push 0x50
push eax
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov dword [ebp - 0xc8], eax
test eax, eax
je 0x4512fa
push str.NETWORKACTION
lea ecx, [ebp - 0xa0]
call fcn.004019e0
mov bl, 0x15
mov byte [ebp - 4], bl
push str.Successfully_connected_to_the_server.
lea ecx, [ebp - 0xbc]
call fcn.004019e0
mov byte [ebp - 4], 0x16
lea eax, [ebp - 0xa0]
push eax
lea ecx, [ebp - 0xbc]
push ecx
call fcn.00419d40
mov byte [ebp - 4], bl
lea ecx, [ebp - 0xbc]
call fcn.00490320
mov byte [ebp - 4], 8
lea ecx, [ebp - 0xa0]
call fcn.00490320
push 0x4e27d5
lea ecx, [ebp - 0x84]
call fcn.00402c20
mov bl, 0x17
mov byte [ebp - 4], bl
lea edx, [ebp - 0x84]
push edx
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0xf4], esp
lea eax, [ebp + 0x40]
push eax
call fcn.00401960
mov byte [ebp - 4], 0x18
mov byte [ebp - 4], bl
call fcn.00450930
push 0x4eabe0
lea ecx, [ebp - 0x4c]
call fcn.004019b0
lea ecx, [ebp - 0xf8]
push ecx
lea ecx, [ebp - 0x84]
call fcn.004257c0
mov esi, eax
lea edx, [ebp - 0x13c]
push edx
lea ecx, [ebp - 0x84]
call fcn.00407910
mov ecx, dword [esi + 4]
push ecx
mov edx, dword [esi]
push edx
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [eax]
push edx
lea ecx, [ebp - 0x4c]
call fcn.0044f1d0
cmp dword [ebp - 0x34], edi
mov eax, dword [ebp - 0x48]
jae 0x451010
lea eax, [ebp - 0x48]
push 0
push 0
push 0
push 0
push eax
push 0x4eabd8
mov eax, dword [ebp - 0xc8]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov esi, eax
mov dword [ebp - 0xcc], esi
test esi, esi
je 0x4512da
push str.NETWORKACTION
lea ecx, [ebp - 0xa0]
call fcn.004019e0
mov byte [ebp - 4], 0x19
push str.Successfully_opened_an_HTTP_request.
lea ecx, [ebp - 0xbc]
call fcn.004019e0
mov byte [ebp - 4], 0x1a
lea ecx, [ebp - 0xa0]
push ecx
lea edx, [ebp - 0xbc]
push edx
call fcn.00419d40
mov byte [ebp - 4], 0x19
lea ecx, [ebp - 0xbc]
call fcn.00490320
mov byte [ebp - 4], bl
lea ecx, [ebp - 0xa0]
call fcn.00490320
push 0
push 0
push 0
push 0
push 0
push 0
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x4512ba
push str.NETWORKACTION
lea ecx, [ebp - 0xa0]
call fcn.004019e0
mov byte [ebp - 4], 0x1b
push str.Successfully_sent_an_HTTP_request.
lea ecx, [ebp - 0xbc]
call fcn.004019e0
mov byte [ebp - 4], 0x1c
lea eax, [ebp - 0xa0]
push eax
lea ecx, [ebp - 0xbc]
push ecx
call fcn.00419d40
mov byte [ebp - 4], 0x1b
lea ecx, [ebp - 0xbc]
call fcn.00490320
mov byte [ebp - 4], bl
lea ecx, [ebp - 0xa0]
call fcn.00490320
push 0
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x45129a
push str.NETWORKACTION
lea ecx, [ebp - 0xa0]
call fcn.004019e0
mov byte [ebp - 4], 0x1d
push str.Successfully_received_a_response.
lea ecx, [ebp - 0xbc]
call fcn.004019e0
mov byte [ebp - 4], 0x1e
lea edx, [ebp - 0xa0]
push edx
lea eax, [ebp - 0xbc]
push eax
call fcn.00419d40
mov byte [ebp - 4], 0x1d
lea ecx, [ebp - 0xbc]
call fcn.00490320
mov byte [ebp - 4], bl
lea ecx, [ebp - 0xa0]
call fcn.00490320
mov dword [ebp - 0xc0], 0
mov dword [ebp - 0xe4], 4
push 0
lea ecx, [ebp - 0xe4]
push ecx
lea edx, [ebp - 0xc0]
push edx
push 0
push 0x20000013
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x45127a
push str.NETWORKACTION
lea ecx, [ebp - 0xbc]
call fcn.004019e0
mov byte [ebp - 4], 0x1f
lea eax, [ebp - 0xc0]
push eax
lea ecx, [ebp - 0x134]
push ecx
call fcn.00419c10
mov byte [ebp - 4], 0x20
push eax
push str.Successfully_obtained_a_status_code._Code
lea edx, [ebp - 0x118]
push edx
call fcn.00401a30
add esp, 0xc
mov byte [ebp - 4], 0x21
lea ecx, [ebp - 0xbc]
push ecx
push eax
call fcn.00419d40
mov byte [ebp - 4], 0x20
lea ecx, [ebp - 0x118]
call fcn.00490320
mov byte [ebp - 4], 0x1f
lea ecx, [ebp - 0x134]
call fcn.00490320
mov byte [ebp - 4], bl
lea ecx, [ebp - 0xbc]
call fcn.00490320
xor edx, edx
cmp dword [ebp - 0xc0], 0xc8
sete dl
mov dword [ebp - 0xc4], edx
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x84]
call fcn.004a4d70
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x68]
call fcn.00490320
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x4c]
call fcn.00490320
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x30]
call fcn.00490320
mov dword [ebp - 4], 2
jmp 0x45149b
call fcn.0041a730
mov dword [ebp - 0xec], str.Failed_to_obtain_a_status_code.
push 0x4fbf34
lea eax, [ebp - 0xec]
push eax
call fcn.004b3137
call fcn.0041a730
mov dword [ebp - 0xd8], str.Failed_to_receive_a_response.
push 0x4fbf34
lea ecx, [ebp - 0xd8]
push ecx
call fcn.004b3137
call fcn.0041a730
mov dword [ebp - 0xdc], str.Failed_to_send_an_HTTP_request.
push 0x4fbf34
lea edx, [ebp - 0xdc]
push edx
call fcn.004b3137
call fcn.0041a730
mov dword [ebp - 0xe8], str.Failed_to_open_an_HTTP_request.
push 0x4fbf34
lea eax, [ebp - 0xe8]
push eax
call fcn.004b3137
call fcn.0041a730
mov dword [ebp - 0xf0], str.Failed_to_connect_to_the_server.
push 0x4fbf34
lea ecx, [ebp - 0xf0]
push ecx
call fcn.004b3137
call fcn.0041a730
mov dword [ebp - 0xd4], str.Failed_to_set_HTTP_session_timeout.
push 0x4fbf34
lea edx, [ebp - 0xd4]
push edx
call fcn.004b3137
call fcn.0041a730
mov dword [ebp - 0xe0], str.Failed_to_open_an_HTTP_session.
push 0x4fbf34
lea eax, [ebp - 0xe0]
push eax
call fcn.004b3137
push str.NETWORKACTION
lea ecx, [ebp - 0xa0]
call fcn.004019e0
mov bl, 0x23
mov byte [ebp - 4], bl
mov ecx, dword [ebp - 0xfc]
push ecx
lea ecx, [ebp - 0xbc]
call fcn.004019e0
mov byte [ebp - 4], 0x24
lea edx, [ebp - 0xa0]
push edx
lea eax, [ebp - 0xbc]
push eax
call fcn.00419d40
mov byte [ebp - 4], bl
lea ecx, [ebp - 0xbc]
call fcn.00490320
mov byte [ebp - 4], 0x22
lea ecx, [ebp - 0xa0]
call fcn.00490320
push str.NETWORKACTION
lea ecx, [ebp - 0xa0]
call fcn.004019e0
mov bl, 0x25
mov byte [ebp - 4], bl
push str.Failed_to_send_request.
lea ecx, [ebp - 0xbc]
call fcn.004019e0
mov byte [ebp - 4], 0x26
lea ecx, [ebp - 0xa0]
push ecx
lea edx, [ebp - 0xbc]
push edx
call fcn.00419d40
mov byte [ebp - 4], bl
lea ecx, [ebp - 0xbc]
call fcn.00490320
mov byte [ebp - 4], 0x22
lea ecx, [ebp - 0xa0]
call fcn.00490320
mov dword [ebp - 0xc4], 0
mov dword [ebp - 4], 2
mov eax, 0x451495
ret
test esi, esi
je 0x4514aa
push esi
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call esi
jmp 0x4514b0
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov eax, dword [ebp - 0xc8]
test eax, eax
je 0x4514bd
push eax
call esi
mov eax, dword [ebp - 0xd0]
test eax, eax
je 0x4514ca
push eax
call esi
mov byte [ebp - 4], 1
lea ecx, [ebp + 8]
call fcn.00490320
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x24]
call fcn.00490320
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x40]
call fcn.00490320
mov eax, dword [ebp - 0xc4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004b3057
mov esp, ebp
pop ebp
ret 0x54