Function at 0x41f036
Capabilities:
Check http status code
Read data from internet
Receive data

Disassembly:
mov eax, 0x45ad5a
call fcn.004485c4
sub esp, 0x438
push ebx
push esi
push edi
mov esi, str.fs::SendInetRequestWithStatusCheck_1360
push esi
call fcn.004468a0
mov dword [ebp - 0x2c], eax
push dword [ebp + 0xc]
xor ebx, ebx
push esi
push str.___s__hReq0x_p_
push ebx
mov dword [ebp - 4], ebx
call fcn.00437bbc
mov esi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
add esp, 0x14
test byte [0x47f65c], 1
jne 0x41f09d
or dword [0x47f65c], 1
push 0x47f640
call esi
push 0x45e392
mov byte [0x47f658], 1
call fcn.00446b68
pop ecx
test byte [0x47f65c], 2
jne 0x41f0c5
or dword [0x47f65c], 2
push 0x47f624
call esi
push 0x45e387
mov byte [0x47f63c], bl
call fcn.00446b68
pop ecx
mov dword [ebp - 0x18], 0x47f624
mov byte [ebp - 0x14], bl
mov byte [ebp - 4], 1
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x18], 0x10
mov ecx, dword [eax + 0x14]
jb 0x41f0e4
mov eax, dword [eax + 4]
jmp 0x41f0e7
add eax, 4
push ecx
push eax
push ebx
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
je 0x41f1db
mov esi, dword [ebp + 0x14]
push ebx
lea eax, [ebp - 0x30]
push eax
push esi
push 0x20000013
push dword [ebp + 0xc]
mov dword [ebp - 0x30], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
mov eax, dword [esi]
cmp eax, 0x191
je 0x41f12e
cmp eax, 0x197
jne 0x41f200
mov dword [ebp - 0x10], ebx
lea eax, [ebp - 0x10]
push eax
push 0x400
lea eax, [ebp - 0x444]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x41f153
cmp dword [ebp - 0x10], ebx
ja 0x41f131
lea edi, [ebp - 0x18]
call fcn.0041f00f
movzx eax, byte [ebp - 0x14]
push eax
push dword [esi]
push str.__auth_error__d:_showUI_d
push ebx
call fcn.00437bbc
add esp, 0x10
mov edi, 0x47f640
push edi
mov dword [ebp - 0x44], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 4], 2
cmp byte [ebp - 0x14], bl
je 0x41f1c3
cmp byte [0x47f658], bl
je 0x41f1f5
push ebx
push 7
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.WININET.dll_InternetErrorDlg]
cmp eax, 0x2f00
sete al
mov byte [0x47f658], al
movzx eax, al
push eax
push str.__decide_to_repeat:__d
push ebx
call fcn.00437bbc
add esp, 0xc
cmp byte [0x47f658], bl
je 0x41f1f5
push edi
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x41f0d3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.HttpSendRequest_failed:_err_d
push ebx
call fcn.00437bbc
add esp, 0xc
jmp 0x41f2de
push edi
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esi]
push 0x64
xor edx, edx
pop ecx
div ecx
cmp eax, 2
je 0x41f2dc
push ebx
lea ecx, [ebp - 0x40]
call fcn.0043bee0
push str.http
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
call fcn.00439a70
lea eax, [ebp - 0x28]
push eax
push 0x467e74
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 4
call fcn.0043d440
mov ecx, eax
call fcn.0043c970
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
call fcn.0043bff0
push dword [esi]
lea ecx, [ebp - 0x28]
call fcn.00439a50
lea eax, [ebp - 0x28]
push eax
push str.code
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 5
call fcn.0043d440
mov ecx, eax
call fcn.0043c970
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
call fcn.0043bff0
push dword [ebp + 8]
lea ecx, [ebp - 0x28]
call fcn.0043a7a0
lea eax, [ebp - 0x28]
push eax
push 0x467c34
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 6
call fcn.0043d440
mov ecx, eax
call fcn.0043c970
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
call fcn.0043bff0
push dword [esi]
lea eax, [ebp - 0x40]
push str.__bad_status:__d
push eax
push 1
call fcn.00437bfb
add esp, 0x10
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.0043bff0
jmp 0x41f2de
mov bl, 1
lea eax, [ebp - 0x18]
call fcn.0041eff2
or dword [ebp - 4], 0xffffffff
lea esi, [ebp - 0x2c]
call fcn.0041836d
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov al, bl
pop ebx
mov dword fs:[0], ecx
leave
ret