Function at 0x4193ba
Capabilities:
Check http status code
Read http header
Receive http response

Disassembly:
push 0x294
mov eax, 0x41e6d6
call fcn.0041dbd5
mov edi, ecx
lea esi, [ebp - 0x218]
mov dword [ebp - 0x278], 4
push ecx
mov edx, esi
call fcn.004199ee
xor ebx, ebx
test eax, eax
jns 0x4193eb
mov esi, ebx
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push esi
push dword [edi + 0x84]
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
jne 0x419419
mov edx, 0x2e3
mov ecx, dword [ebp + 4]
push 0x40a7ec
call fcn.0040e97d
jmp 0x4197ed
lea eax, [ebp - 0x254]
mov dword [ebp - 0x254], 0x28
push eax
lea eax, [ebp - 0x2a0]
mov esi, ebx
push eax
push 0x20
push dword [edi + 0x84]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryOption]
test eax, eax
jne 0x419450
call fcn.00416327
mov esi, eax
test esi, esi
js 0x41948d
push 0x2e
push 0x40a9b0
push dword [ebp - 0x28c]
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x419484
push 0x1f
push 0x40aa10
push dword [ebp - 0x290]
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
je 0x419489
mov esi, 0x83760001
test esi, esi
jns 0x4194a5
mov edx, 0x2e4
mov ecx, dword [ebp + 4]
push esi
push 0x40a7ec
call fcn.0040e960
jmp 0x4197eb
push ebx
push dword [edi + 0x84]
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x4194c0
mov edx, 0x2e5
jmp 0x419407
push ebx
lea eax, [ebp - 0x278]
push eax
lea eax, [ebp - 0x270]
push eax
push ebx
push 0x20000013
push dword [edi + 0x84]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x4194ef
mov edx, 0x2e6
jmp 0x419407
cmp dword [ebp - 0x270], 0xc8
je 0x419516
cmp dword [ebp - 0x270], 0x130
je 0x419516
mov esi, 0x80004005
mov edx, 0x2e8
jmp 0x419492
push 7
pop ecx
xor eax, eax
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x220], ebx
mov word [ebp - 0x230], ax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x234], ecx
mov dword [ebp - 0x238], ebx
mov word [ebp - 0x248], ax
lea eax, [ebp - 0x248]
mov byte [ebp - 4], 1
push eax
lea eax, [edi + 0x88]
mov ecx, edi
push eax
lea edx, [ebp - 0x230]
call fcn.004197f3
mov esi, eax
test esi, esi
jns 0x419570
mov edx, 0x2ec
jmp 0x419597
cmp dword [ebp - 0x21c], 8
mov edx, dword [ebp - 0x230]
jae 0x419585
lea edx, [ebp - 0x230]
mov ecx, edi
call fcn.00419ab4
mov esi, eax
test esi, esi
jns 0x4195aa
mov edx, 0x2ed
mov ecx, dword [ebp + 4]
push esi
push 0x40a7ec
call fcn.0040e960
jmp 0x4197cf
xor esi, esi
cmp dword [ebp - 0x270], 0x130
jne 0x4195be
inc esi
jmp 0x4197cf
xor eax, eax
mov dword [ebp - 0x250], ebx
mov dword [ebp - 0x274], ebx
mov dword [ebp - 0x260], ebx
mov dword [ebp - 0x25c], esi
mov dword [ebp - 0x254], eax
mov dword [ebp - 0x258], eax
mov byte [ebp - 4], 2
lea eax, [ebp - 0x250]
push eax
push dword [edi + 0x84]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x4197a7
cmp dword [ebp - 0x250], 0
je 0x419750
push dword [ebp - 0x250]
xor eax, eax
lea ecx, [ebp - 0x26c]
mov dword [ebp - 0x26c], eax
mov dword [ebp - 0x268], eax
mov dword [ebp - 0x264], eax
call fcn.0041a80a
lea eax, [ebp - 0x274]
mov byte [ebp - 4], 3
push eax
push dword [ebp - 0x250]
push dword [ebp - 0x26c]
push dword [edi + 0x84]
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x419724
mov eax, dword [ebp - 0x274]
cmp eax, dword [ebp - 0x250]
jne 0x41970a
mov ecx, dword [ebp - 0x268]
sub ecx, dword [ebp - 0x26c]
mov eax, dword [ebp - 0x254]
sub ecx, ebx
inc ecx
sub eax, ebx
add ecx, esi
cmp eax, ecx
jae 0x4196a1
push ecx
lea ecx, [ebp - 0x260]
call fcn.0041a7a5
mov esi, dword [ebp - 0x25c]
push dword [ebp - 0x278]
mov ebx, dword [ebp - 0x26c]
lea ecx, [ebp - 0x260]
push dword [ebp - 0x268]
push ebx
push esi
call fcn.0041afd2
mov byte [ebp - 4], 2
test ebx, ebx
je 0x4196e4
push ebx
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void__]
xor eax, eax
pop ecx
mov dword [ebp - 0x26c], eax
mov dword [ebp - 0x268], eax
mov dword [ebp - 0x264], eax
cmp dword [ebp - 0x250], 0
mov esi, dword [ebp - 0x25c]
mov ebx, dword [ebp - 0x260]
je 0x419750
mov eax, dword [ebp - 0x258]
mov dword [ebp - 0x254], eax
jmp 0x4195e8
mov ecx, dword [ebp + 4]
mov esi, 0x8000ffff
push esi
push 0x40a7ec
mov edx, 0x308
call fcn.0040e960
jmp 0x419738
mov ecx, dword [ebp + 4]
mov edx, 0x304
push 0x40a7ec
call fcn.0040e97d
mov esi, eax
cmp dword [ebp - 0x26c], 0
je 0x4197bb
push dword [ebp - 0x26c]
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void__]
pop ecx
jmp 0x4197bb
sub esi, ebx
jne 0x419760
mov esi, 0x800700e8
mov edx, 0x312
jmp 0x419793
lea eax, [ebp - 0x249]
mov byte [ebp - 0x249], 0
push eax
lea ecx, [ebp - 0x260]
call fcn.0041a249
mov ebx, dword [ebp - 0x260]
mov ecx, edi
mov edx, ebx
call fcn.00419ba2
mov esi, eax
test esi, esi
jns 0x4197a3
mov edx, 0x317
mov ecx, dword [ebp + 4]
push esi
push 0x40a7ec
call fcn.0040e960
jmp 0x4197bb
xor esi, esi
jmp 0x4197c1
mov ecx, dword [ebp + 4]
mov edx, 0x2fb
push 0x40a7ec
call fcn.0040e97d
mov esi, eax
mov ebx, dword [ebp - 0x260]
test ebx, ebx
je 0x4197cd
push ebx
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void__]
pop ecx
xor ebx, ebx
push ebx
push 1
lea ecx, [ebp - 0x248]
call fcn.00416d02
push ebx
push 1
lea ecx, [ebp - 0x230]
call fcn.00416d02
mov eax, esi
call fcn.0041db84
ret