Function at 0x10005840
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x22b4
call fcn.1000db20
mov eax, dword [0x10047140]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x22a0], eax
xor eax, eax
push 0x1044
push eax
mov word [ebp - 0x229c], ax
lea eax, [ebp - 0x229a]
push eax
mov dword [ebp - 0x22a4], edi
call fcn.100105b0
mov esi, dword [sym.imp.WININET.dll_InternetSetOptionW]
add esp, 0xc
lea eax, [ebp - 0x22a8]
push 4
push eax
push 2
push 0
mov dword [ebp - 0x22a8], 0x7530
call esi
push 4
lea eax, [ebp - 0x22a8]
push eax
push 5
push 0
call esi
push 4
lea eax, [ebp - 0x22a8]
push eax
push 6
push 0
call esi
xor ebx, ebx
lea esp, [esp]
push 0
push 0
push 0
push 0
push str.Microsoft_Internet_Explorer
call dword [sym.imp.WININET.dll_InternetOpenW]
mov esi, eax
test esi, esi
je 0x10005a29
push 4
lea eax, [ebp - 0x22b4]
push eax
push 0x4d
push esi
mov dword [ebp - 0x22b4], 1
call dword [sym.imp.WININET.dll_InternetSetOptionA]
push 0
push SysReAllocStringLen
push 0
push 0
push edi
push esi
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov edi, eax
test edi, edi
jne 0x10005af1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
mov dword [ebp - 0x22b0], 0
call fcn.100105b0
push 0x1046
lea eax, [ebp - 0x1254]
push 0
push eax
mov dword [ebp - 0x22ac], 0x103
call fcn.100105b0
add esp, 0x18
lea eax, [ebp - 0x22ac]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x22b0]
push eax
call dword [sym.imp.WININET.dll_InternetGetLastResponseInfoW]
test eax, eax
je 0x100059e2
push dword [ebp - 0x22a4]
lea eax, [ebp - 0x20c]
push edi
push eax
push 0x10037d48
lea eax, [ebp - 0x1254]
push 0x822
push eax
call fcn.10001420
push dword [ebp - 0x22a0]
lea eax, [ebp - 0x1254]
push eax
push str.Downloader_Debug_Log
call sym.SKUtil.dll_SendUNOLog
mov edi, dword [ebp - 0x22a4]
add esp, 0x24
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x10005a7d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [ebp - 0x22a4]
push edi
push eax
push str._SK_CallURL_InternetOpenUrlW_ERROR__ErrorCode___.8X__URL___s
lea eax, [ebp - 0x1254]
push 0x822
push eax
call fcn.10001420
push dword [ebp - 0x22a0]
lea eax, [ebp - 0x1254]
push eax
push str.Downloader_Debug_Log
call sym.SKUtil.dll_SendUNOLog
add esp, 0x20
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x10005a7d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.100105b0
push esi
push str._SK_CallURL_InternetOpenW_ERROR__ErrorCode___.8X
lea eax, [ebp - 0x20c]
push 0x103
push eax
call fcn.10001400
push dword [ebp - 0x22a0]
lea eax, [ebp - 0x20c]
push eax
push str.Downloader_Debug_Log
call sym.SKUtil.dll_SendUNOLog
add esp, 0x28
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x10005ac9
call fcn.1000f24a
movd xmm0, eax
cvtdq2pd xmm0, xmm0
mov ecx, ebx
divsd xmm0, qword [0x100382f0]
mov eax, 1
mulsd xmm0, qword [0x100382e8]
shl eax, cl
addsd xmm0, qword [0x100382e0]
cvttsd2si edx, xmm0
add edx, eax
imul edx, edx, 0x3e8
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp + 0x10]
inc ebx
cmp ebx, 5
jg 0x10005b81
test eax, eax
jne 0x100058d0
pop edi
pop esi
lea eax, [ebp - 0x229c]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000db11
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x22a0]
push eax
push 0x823
lea eax, [ebp - 0xa34]
push eax
push edi
mov dword [ebp - 0x22a0], 0
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x10005b7a
mov eax, dword [ebp - 0x22a0]
test eax, eax
je 0x10005b7a
cmp eax, 0x823
jae 0x10005b98
mov byte [ebp + eax - 0xa34], 0
push 0x10037d44
lea eax, [ebp - 0xa34]
push eax
call dword [sym.imp.SHLWAPI.dll_StrTrimA]
lea ecx, [ebp - 0xa34]
lea edx, [ecx + 1]
lea ecx, [ecx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10005b50
push 0x823
sub ecx, edx
lea eax, [ebp - 0x229c]
push eax
lea eax, [ecx + 1]
push eax
lea eax, [ebp - 0xa34]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
lea eax, [ebp - 0x229c]
pop ebx
call fcn.1000db11
mov esp, ebp
pop ebp
ret
call fcn.1000deda
int3