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

Disassembly:
mov eax, 0x45dc81
call fcn.0044b154
sub esp, 0x438
push ebx
push esi
push edi
mov esi, str.fs::SendInetRequestWithStatusCheck_1411
push esi
call fcn.00449520
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.0043a6e3
mov esi, dword [sym.imp.KERNEL32.DLL_InitializeCriticalSection]
add esp, 0x14
test byte [0x4848d4], 1
jne 0x42162a
or dword [0x4848d4], 1
push 0x4848b8
call esi
push 0x4616f7
mov byte [0x4848d0], 1
call fcn.00448ab0
pop ecx
test byte [0x4848d4], 2
jne 0x421652
or dword [0x4848d4], 2
push 0x48489c
call esi
push 0x4616ec
mov byte [0x4848b4], bl
call fcn.00448ab0
pop ecx
mov dword [ebp - 0x18], 0x48489c
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 0x421671
mov eax, dword [eax + 4]
jmp 0x421674
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 0x421768
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 0x4216bb
cmp eax, 0x197
jne 0x42178d
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 0x4216e0
cmp dword [ebp - 0x10], ebx
ja 0x4216be
lea edi, [ebp - 0x18]
call fcn.0042159c
movzx eax, byte [ebp - 0x14]
push eax
push dword [esi]
push str.__auth_error__d:_showUI_d
push ebx
call fcn.0043a6e3
add esp, 0x10
mov edi, 0x4848b8
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 0x421750
cmp byte [0x4848d0], bl
je 0x421782
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 [0x4848d0], al
movzx eax, al
push eax
push str.__decide_to_repeat:__d
push ebx
call fcn.0043a6e3
add esp, 0xc
cmp byte [0x4848d0], bl
je 0x421782
push edi
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
jmp 0x421660
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.HttpSendRequest_failed:_err_d
push ebx
call fcn.0043a6e3
add esp, 0xc
jmp 0x42186b
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 0x421869
push ebx
lea ecx, [ebp - 0x40]
call fcn.0043ea40
push str.http
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
call fcn.0043c5d0
lea eax, [ebp - 0x28]
push eax
push 0x46b73c
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 4
call fcn.0043ffd0
mov ecx, eax
call fcn.0043f4d0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
call fcn.0043eb50
push dword [esi]
lea ecx, [ebp - 0x28]
call fcn.0043c5b0
lea eax, [ebp - 0x28]
push eax
push str.code
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 5
call fcn.0043ffd0
mov ecx, eax
call fcn.0043f4d0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
call fcn.0043eb50
push dword [ebp + 8]
lea ecx, [ebp - 0x28]
call fcn.0043d300
lea eax, [ebp - 0x28]
push eax
push 0x46ae34
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 6
call fcn.0043ffd0
mov ecx, eax
call fcn.0043f4d0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
call fcn.0043eb50
push dword [esi]
lea eax, [ebp - 0x40]
push str.__bad_status:__d
push eax
push 1
call fcn.0043a722
add esp, 0x10
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.0043eb50
jmp 0x42186b
mov bl, 1
lea eax, [ebp - 0x18]
call fcn.0042157f
or dword [ebp - 4], 0xffffffff
lea esi, [ebp - 0x2c]
call fcn.00419c15
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov al, bl
pop ebx
mov dword fs:[0], ecx
leave
ret