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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10070865
mov eax, dword fs:[0]
push eax
sub esp, 0x164
mov eax, dword [0x10184080]
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.10024d40
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 0x1000475f
cmp eax, 0x800c0008
je 0x10004758
test eax, eax
je 0x1000458e
mov edx, str.Couldnt_check_for_updates._Make_sure_youre_gconnected_sto_the_internet.
jmp 0x10004764
push 0xdb
lea eax, [ebp - 0x144]
push 0
push eax
call fcn.1004e620
mov eax, dword [0x1007b090]
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 [0x1007b080]
cmp dword [ebp + 0x34], 0xf
push 0xff
cmova esi, dword [ebp + 0x20]
movups xmmword [ebp - 0x158], xmm0
mov dword [ebp - 0x170], eax
call fcn.1004cde6
push 0xff
push 0
push eax
mov dword [ebp - 0x16c], eax
call fcn.1004e620
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 0x10004640
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x68]
call fcn.10025930
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 0x10004691
nop dword [eax + eax]
mov eax, dword [edx]
cmp eax, dword [ecx]
jne 0x10004696
add edx, 4
add ecx, 4
sub esi, 4
jae 0x10004680
cmp esi, 0xfffffffc
je 0x100046ca
mov al, byte [edx]
cmp al, byte [ecx]
jne 0x100046c3
cmp esi, 0xfffffffd
je 0x100046ca
mov al, byte [edx + 1]
cmp al, byte [ecx + 1]
jne 0x100046c3
cmp esi, 0xfffffffe
je 0x100046ca
mov al, byte [edx + 2]
cmp al, byte [ecx + 2]
jne 0x100046c3
cmp esi, 0xffffffff
je 0x100046ca
mov al, byte [edx + 3]
cmp al, byte [ecx + 3]
je 0x100046ca
sbb eax, eax
or eax, 1
jmp 0x100046cc
xor eax, eax
test eax, eax
jne 0x100046da
mov eax, dword [ebp + 0x18]
cmp dword [ebp - 0x58], eax
jb 0x100046da
jbe 0x1000472b
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.10001290
push 0x1007b0c4
push 0x1007b0c8
mov edx, str.sDo_you_want_to_update_now_
lea ecx, [ebp - 0x50]
call fcn.10031810
add esp, 0x18
test al, al
je 0x10004728
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 0x100047a6
lea ecx, [eax + 1]
mov eax, edi
cmp ecx, 0x1000
jb 0x10004754
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000488b
push ecx
push edi
jmp 0x1000479e
mov edx, str.rINET_E_DOWNLOAD_FAILUREs:_couldnt_complete_updates_check
jmp 0x10004764
mov edx, str.rE_OUTOFMEMORYs:_couldnt_complete_updates_check
push ecx
push 0x1b58
call fcn.1002a300
mov ecx, dword [ebp - 0x54]
add esp, 8
cmp ecx, 0xf
jbe 0x100047a6
mov edx, dword [ebp - 0x68]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1000479c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000488b
push ecx
push edx
call fcn.1004cdb5
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 0x100047ec
mov edx, dword [ebp + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100047e2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000488b
push ecx
push edx
call fcn.1004cdb5
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 0x1000482e
mov edx, dword [ebp + 0x20]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10004824
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000488b
push ecx
push edx
call fcn.1004cdb5
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 0x10004870
mov edx, dword [ebp + 0x38]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10004866
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000488b
push ecx
push edx
call fcn.1004cdb5
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.1004ca58
mov esp, ebp
pop ebp
ret
call fcn.100551f1
int3