Function at 0x10004590
Capabilities:
Create process on windows
Download url
Read .ini file
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10072af5
mov eax, dword fs:[0]
push eax
sub esp, 0x164
mov eax, dword [0x10187080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp + 8]
mov dword [ebp - 4], 2
push eax
lea ecx, [ebp - 0x68]
call fcn.10026120
push 0
push 0x10
push str.._Libertys_Legacy_updates_check.ini
push str.https:__raw.githubusercontent.com_KonstantinosTourtsakis_public_web_file_access_main_texts_updates_check.ini
push 0
mov byte [ebp - 4], 3
call dword [sym.imp.urlmon.dll_URLDownloadToFileA]
cmp eax, 0x8007000e
je 0x100047df
cmp eax, 0x800c0008
je 0x100047d8
test eax, eax
je 0x1000460e
mov edx, str.Couldnt_check_for_updates._Make_sure_youre_gconnected_sto_the_internet.
jmp 0x100047e4
push 0xdb
lea eax, [ebp - 0x144]
push 0
push eax
call fcn.100508c0
mov eax, dword [0x1007d0b0]
lea edi, [ebp + 0x38]
cmp dword [ebp + 0x1c], 0xf
lea esi, [ebp + 0x20]
movups xmm0, xmmword [str..Libertys_Legacy_updates_check.ini]
mov dword [ebp - 0x148], eax
lea eax, [ebp + 8]
cmova eax, dword [ebp + 8]
cmp dword [ebp + 0x4c], 0xf
movups xmmword [ebp - 0x168], xmm0
cmova edi, dword [ebp + 0x38]
movups xmm0, xmmword [0x1007d0a0]
cmp dword [ebp + 0x34], 0xf
push 0xff
cmova esi, dword [ebp + 0x20]
movups xmmword [ebp - 0x158], xmm0
mov dword [ebp - 0x170], eax
call fcn.1004f086
push 0xff
push 0
push eax
mov dword [ebp - 0x16c], eax
call fcn.100508c0
add esp, 0x1c
lea eax, [ebp - 0x168]
push eax
push 0xff
push dword [ebp - 0x16c]
push dword [ebp - 0x170]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov edx, dword [ebp - 0x16c]
mov ecx, edx
lea esi, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100046c0
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x68]
call fcn.10026c90
cmp dword [ebp + 0x1c], 0xf
lea ecx, [ebp + 8]
mov edi, dword [ebp - 0x68]
lea edx, [ebp - 0x68]
cmova ecx, dword [ebp + 8]
cmp dword [ebp - 0x54], 0xf
mov eax, dword [ebp + 0x18]
mov esi, dword [ebp - 0x58]
cmova edx, edi
cmp eax, esi
cmovb esi, eax
sub esi, 4
jb 0x10004711
nop dword [eax + eax]
mov eax, dword [edx]
cmp eax, dword [ecx]
jne 0x10004716
add edx, 4
add ecx, 4
sub esi, 4
jae 0x10004700
cmp esi, 0xfffffffc
je 0x1000474a
mov al, byte [edx]
cmp al, byte [ecx]
jne 0x10004743
cmp esi, 0xfffffffd
je 0x1000474a
mov al, byte [edx + 1]
cmp al, byte [ecx + 1]
jne 0x10004743
cmp esi, 0xfffffffe
je 0x1000474a
mov al, byte [edx + 2]
cmp al, byte [ecx + 2]
jne 0x10004743
cmp esi, 0xffffffff
je 0x1000474a
mov al, byte [edx + 3]
cmp al, byte [ecx + 3]
je 0x1000474a
sbb eax, eax
or eax, 1
jmp 0x1000474c
xor eax, eax
test eax, eax
jne 0x1000475a
mov eax, dword [ebp + 0x18]
cmp dword [ebp - 0x58], eax
jb 0x1000475a
jbe 0x100047ab
cmp dword [ebp - 0x54], 0xf
lea eax, [ebp - 0x68]
cmova eax, edi
push eax
push str.gLibertys_Legacy_y_s_sis_available.
lea eax, [ebp - 0x50]
push 0x40
push eax
call fcn.100012c0
push 0x1007d0e4
push 0x1007d0e8
mov edx, str.sDo_you_want_to_update_now_
lea ecx, [ebp - 0x50]
call fcn.10032f80
add esp, 0x18
test al, al
je 0x100047a8
push 5
push 0
push 0
push str.https:__www.nexusmods.com_gta4_mods_100
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov edi, dword [ebp - 0x68]
mov eax, dword [ebp - 0x54]
cmp eax, 0xf
jbe 0x10004826
lea ecx, [eax + 1]
mov eax, edi
cmp ecx, 0x1000
jb 0x100047d4
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000490b
push ecx
push edi
jmp 0x1000481e
mov edx, str.rINET_E_DOWNLOAD_FAILUREs:_couldnt_complete_updates_check
jmp 0x100047e4
mov edx, str.rE_OUTOFMEMORYs:_couldnt_complete_updates_check
push ecx
push 0x1b58
call fcn.1002b660
mov ecx, dword [ebp - 0x54]
add esp, 8
cmp ecx, 0xf
jbe 0x10004826
mov edx, dword [ebp - 0x68]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1000481c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000490b
push ecx
push edx
call fcn.1004f055
add esp, 8
mov ecx, dword [ebp + 0x1c]
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0xf
mov byte [ebp - 0x68], 0
cmp ecx, 0xf
jbe 0x1000486c
mov edx, dword [ebp + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10004862
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000490b
push ecx
push edx
call fcn.1004f055
add esp, 8
mov ecx, dword [ebp + 0x34]
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 0xf
mov byte [ebp + 8], 0
cmp ecx, 0xf
jbe 0x100048ae
mov edx, dword [ebp + 0x20]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100048a4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000490b
push ecx
push edx
call fcn.1004f055
add esp, 8
mov ecx, dword [ebp + 0x4c]
mov dword [ebp + 0x30], 0
mov dword [ebp + 0x34], 0xf
mov byte [ebp + 0x20], 0
cmp ecx, 0xf
jbe 0x100048f0
mov edx, dword [ebp + 0x38]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100048e6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000490b
push ecx
push edx
call fcn.1004f055
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1004ecf8
mov esp, ebp
pop ebp
ret
call fcn.10057491
int3