Function at 0x100054bd
Capabilities:
Check http status code
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [ebp + 0x14]
push ebx
push edi
xor edi, edi
mov dword [eax], edi
mov eax, dword [ebp + 0x10]
push str.wininet.dll
mov dword [ebp - 4], edi
mov dword [eax], edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
cmp ebx, edi
jne 0x100054ed
xor eax, eax
inc eax
jmp 0x100056a8
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.InternetOpenA
push ebx
call esi
push str.InternetConnectA
push ebx
mov dword [ebp - 0x1c], eax
call esi
push str.InternetReadFile
push ebx
mov dword [ebp - 0x10], eax
call esi
push str.InternetCloseHandle
push ebx
mov dword [ebp - 0x14], eax
call esi
push str.HttpSendRequestA
push ebx
mov dword [ebp - 0x18], eax
call esi
push str.HttpOpenRequestA
push ebx
mov dword [ebp - 8], eax
call esi
push str.HttpQueryInfoA
push ebx
mov dword [ebp - 0xc], eax
call esi
mov ebx, eax
cmp dword [ebp - 0x1c], edi
je 0x100056a4
cmp dword [ebp - 0x10], edi
je 0x100056a4
cmp dword [ebp - 0x14], edi
je 0x100056a4
cmp dword [ebp - 8], edi
je 0x100056a4
cmp dword [ebp - 0xc], edi
je 0x100056a4
push edi
push edi
push edi
push edi
push str.tl_v2.37.966
call dword [ebp - 0x1c]
push edi
push edi
push 3
push edi
push edi
push 0x50
push dword [ebp + 8]
mov dword [ebp - 0x2c], eax
push eax
call dword [ebp - 0x10]
mov dword [ebp - 0x24], eax
cmp eax, edi
je 0x100056a4
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
push edi
push 0x84000300
push 0x10019f70
push edi
push edi
push dword [ebp + 0xc]
push 0x10015588
push dword [ebp - 0x24]
call dword [ebp - 0xc]
push edi
push edi
push 0xffffffffffffffff
push edi
push eax
mov dword [ebp - 0xc], eax
call dword [ebp - 8]
push edi
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x20]
push eax
push 0x20000013
push dword [ebp - 0xc]
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x28], 4
call ebx
mov dword [ebp - 0x1c], eax
cmp eax, edi
je 0x10005673
cmp dword [ebp - 0x20], 0xc8
jne 0x10005673
mov ebx, 0x400
mov dword [ebp - 0x10], edi
mov dword [ebp - 8], ebx
call esi
push ebx
push 8
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
lea ecx, [ebp - 0x10]
push ecx
push 0x3ff
jmp 0x10005665
mov eax, dword [ebp - 0x10]
cmp eax, edi
je 0x10005673
add dword [ebp - 4], eax
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 4]
cmp eax, 0x10
jae 0x10005651
add dword [ebp - 8], ebx
call esi
push dword [ebp - 8]
mov eax, dword [ebp + 0x10]
push dword [eax]
push 8
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 4]
dec eax
push eax
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
add eax, dword [ebp - 4]
push eax
push dword [ebp - 0xc]
call dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
cmp eax, edi
jne 0x1000561f
push dword [ebp - 0xc]
call dword [ebp - 0x18]
push dword [ebp - 0x24]
call dword [ebp - 0x18]
push dword [ebp - 0x2c]
call dword [ebp - 0x18]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
cmp dword [ebp - 0x1c], edi
je 0x1000569f
cmp dword [ebp - 0x20], 0xc8
jne 0x1000569f
xor eax, eax
jmp 0x100056a7
push 0x64
pop eax
jmp 0x100056a7
xor eax, eax
inc eax
pop esi
pop edi
pop ebx
leave
ret