Function at 0x43b1c0
Capabilities:
Prepare http request
Read http header
Receive http response

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f2957
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x53e754]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x238]
mov edx, 0x53fa08
mov byte [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x20], 0xffffffff
mov dword [esi + 0x24], 0xffffffff
mov dword [esi + 0x28], 0xffffffff
mov dword [ebp - 0x22c], edi
call fcn.00432330
lea ecx, [ebp - 0x22c]
mov dword [ebp - 4], 0
push ecx
mov ecx, dword [eax]
push str.Opening_internet_stream__url:__s_
push 1
call fcn.0041d130
mov dword [ebp - 4], 1
or ebx, 0xffffffff
mov ecx, dword [ebp - 0x234]
mov dword [ebp - 0x22c], ecx
test ecx, ecx
je 0x43b2a2
mov eax, ebx
lock xadd dword [ecx + 4], eax
jne 0x43b2a2
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x22c]
mov eax, ebx
lock xadd dword [ecx + 8], eax
jne 0x43b2a2
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov ecx, esi
push edi
mov dword [esi + 0x10], 0
call fcn.0043b010
test al, al
jne 0x43b2cd
mov edx, edi
mov ecx, str.Unable_to_get_create_session_for_url__url:__s_
call fcn.00423cb0
jmp 0x43b4d6
push 0x800000
push 0
push 0
push 0
push dword [esi + 0x18]
push 0x51e1c8
push dword [esi + 8]
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov dword [esi + 0xc], eax
test eax, eax
jne 0x43b301
mov edx, edi
mov ecx, str.Unable_to_open_stream_POST_request__url:__s_
call fcn.00423cb0
jmp 0x43b4d6
push 0
push 0
push 0
push 0
push 0
push 0
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
jne 0x43b352
lea ecx, [ebp - 0x228]
call fcn.0043a4c0
mov dword [ebp - 4], 2
cmp dword [eax + 0x14], 8
jb 0x43b332
mov eax, dword [eax]
mov ecx, str.Unable_to_send_stream_POST_request__url:__s__error:__s_
push eax
mov edx, edi
call fcn.004413c0
add esp, 4
lea ecx, [ebp - 0x228]
call fcn.00419480
jmp 0x43b4d6
push 0
push dword [esi + 0xc]
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x43b382
lea ecx, [ebp - 0x228]
call fcn.0043a4c0
mov dword [ebp - 4], 3
cmp dword [eax + 0x14], 8
jb 0x43b37b
mov eax, dword [eax]
mov ecx, str.Unable_to_receive_HTTP_response__url:__s__error:__s_
jmp 0x43b337
xor eax, eax
mov dword [ebp - 0x230], 0x200
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x210]
push eax
push 0
push 0x13
push dword [esi + 0xc]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x43b3d9
lea ecx, [ebp - 0x228]
call fcn.0043a4c0
mov dword [ebp - 4], 4
cmp dword [eax + 0x14], 8
jb 0x43b3cf
mov eax, dword [eax]
mov ecx, str.Unable_to_query_HTTP_headers_for_status_code__url:__s__error:__s_
jmp 0x43b337
lea eax, [esi + 0x28]
mov dword [eax], 0
push eax
lea eax, [ebp - 0x210]
push 0x51e3c0
push eax
call fcn.00438590
mov ecx, dword [esi + 0x28]
add esp, 0xc
lea eax, [ecx - 0xc8]
cmp eax, 0x64
jb 0x43b415
push ecx
mov edx, edi
call fcn.00441d20
add esp, 4
jmp 0x43b4d6
xor eax, eax
mov dword [ebp - 0x230], 0x100
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x210]
push eax
push 0
push 5
push dword [esi + 0xc]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x43b4bb
mov eax, dword [esi + 0x28]
lea ecx, [ebp - 0x240]
mov edx, 0x53fa08
mov dword [ebp - 0x22c], eax
mov dword [ebp - 0x234], edi
call fcn.00432330
lea ecx, [ebp - 0x22c]
mov dword [ebp - 4], 5
push ecx
lea ecx, [ebp - 0x234]
push ecx
mov ecx, dword [eax]
push 0x51e470
push 2
call fcn.0041d320
mov dword [ebp - 4], 6
mov edi, dword [ebp - 0x23c]
test edi, edi
je 0x43b4d3
mov eax, ebx
lock xadd dword [edi + 4], eax
jne 0x43b4d3
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lock xadd dword [edi + 8], ebx
dec ebx
jne 0x43b4d3
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
jmp 0x43b4d3
lea eax, [esi + 0x20]
push eax
lea eax, [ebp - 0x210]
push str._I64d
push eax
call fcn.00438590
add esp, 0xc
mov byte [esi], 1
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a65f2
mov esp, ebp
pop ebp
ret 8