Function at 0x13176df0
Capabilities:
Get file size
Link many functions at runtime
Read .ini file
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x3f
push 0
push 0
dec ecx
jne 0x13176df8
push ebx
push esi
push edi
mov dword [ebp - 0x24], eax
xor eax, eax
push ebp
push 0x13177680
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x1318bb04
call fcn.13145140
lea edx, [ebp - 0x188]
mov eax, 0x26
call fcn.13176c94
push dword [ebp - 0x188]
push 0x13177698
push 0x131776b4
lea eax, [ebp - 0x184]
mov edx, 3
call fcn.131454d4
mov eax, dword [ebp - 0x184]
call fcn.131455d0
push eax
call sub.kernel32.dll_LoadLibraryA
lea edx, [ebp - 0x190]
mov eax, 0x26
call fcn.13176c94
push dword [ebp - 0x190]
push 0x13177698
push 0x131776cc
lea eax, [ebp - 0x18c]
mov edx, 3
call fcn.131454d4
mov eax, dword [ebp - 0x18c]
call fcn.131455d0
push eax
call sub.kernel32.dll_LoadLibraryA
lea edx, [ebp - 0x198]
mov eax, 0x26
call fcn.13176c94
push dword [ebp - 0x198]
push 0x13177698
push 0x131776e0
lea eax, [ebp - 0x194]
mov edx, 3
call fcn.131454d4
mov eax, dword [ebp - 0x194]
call fcn.131455d0
push eax
call sub.kernel32.dll_LoadLibraryA
lea edx, [ebp - 0x1a0]
mov eax, 0x26
call fcn.13176c94
push dword [ebp - 0x1a0]
push 0x13177698
push 0x131776f4
lea eax, [ebp - 0x19c]
mov edx, 3
call fcn.131454d4
mov eax, dword [ebp - 0x19c]
call fcn.131455d0
push eax
call sub.kernel32.dll_LoadLibraryA
lea edx, [ebp - 0x1a8]
mov eax, 0x26
call fcn.13176c94
push dword [ebp - 0x1a8]
push 0x13177698
push 0x13177708
lea eax, [ebp - 0x1a4]
mov edx, 3
call fcn.131454d4
mov eax, dword [ebp - 0x1a4]
call fcn.131455d0
push eax
call sub.kernel32.dll_LoadLibraryA
lea edx, [ebp - 0x1b0]
mov eax, 0x26
call fcn.13176c94
push dword [ebp - 0x1b0]
push 0x13177698
push 0x1317771c
lea eax, [ebp - 0x1ac]
mov edx, 3
call fcn.131454d4
mov eax, dword [ebp - 0x1ac]
call fcn.131455d0
push eax
call sub.kernel32.dll_LoadLibraryA
lea edx, [ebp - 0x1b8]
mov eax, 0x26
call fcn.13176c94
push dword [ebp - 0x1b8]
push 0x13177698
push 0x13177734
lea eax, [ebp - 0x1b4]
mov edx, 3
call fcn.131454d4
mov eax, dword [ebp - 0x1b4]
call fcn.131455d0
push eax
call sub.kernel32.dll_LoadLibraryA
lea edx, [ebp - 0x1c0]
mov eax, 0x26
call fcn.13176c94
push dword [ebp - 0x1c0]
push 0x13177698
push 0x1317774c
lea eax, [ebp - 0x1bc]
mov edx, 3
call fcn.131454d4
mov eax, dword [ebp - 0x1bc]
call fcn.131455d0
push eax
call sub.kernel32.dll_LoadLibraryA
mov edi, eax
push 0x13177758
push edi
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebp - 0x28], eax
push 0x13177764
push edi
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebp - 0x2c], eax
push 0x1317777c
push edi
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebp - 0x30], eax
push 0x13177794
push edi
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebp - 0x34], eax
push 0x131777a8
push edi
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebp - 0x38], eax
push 0x131777b8
push edi
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebp - 0x3c], eax
push 0x131777c8
push edi
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebp - 0x40], eax
push 0x131777d8
call sub.kernel32.dll_LoadLibraryA
mov ebx, eax
push 0x131777e4
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov esi, eax
lea edx, [ebp - 0x1c8]
mov eax, 0x26
call fcn.13176c94
push dword [ebp - 0x1c8]
push 0x13177698
push 0x131776cc
lea eax, [ebp - 0x1c4]
mov edx, 3
call fcn.131454d4
mov eax, dword [ebp - 0x1c4]
call fcn.13176dbc
test al, al
je 0x13177655
lea edx, [ebp - 0x1d0]
mov eax, 0x26
call fcn.13176c94
push dword [ebp - 0x1d0]
push 0x13177698
push 0x131776cc
lea eax, [ebp - 0x1cc]
mov edx, 3
call fcn.131454d4
mov eax, dword [ebp - 0x1cc]
call fcn.131455d0
push eax
call sub.kernel32.dll_LoadLibraryA
mov edi, eax
push 0x13177800
push edi
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x1318bb08], eax
push 0x13177810
push edi
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x1318bb0c], eax
push 0x13177820
push edi
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x1318bb10], eax
push 0x13177834
push edi
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x1318bb14], eax
push 0x13177844
push edi
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x1318bb18], eax
lea eax, [ebp - 0x44]
push eax
push 8
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
lea edx, [ebp - 0x1d8]
mov eax, 0x1a
call fcn.13176c94
push dword [ebp - 0x1d8]
push 0x1317785c
push 0x13177878
lea eax, [ebp - 0x1d4]
mov edx, 3
call fcn.131454d4
mov eax, dword [ebp - 0x1d4]
call fcn.131455d0
push eax
push 0x104
lea eax, [ebp - 0x165]
push eax
push 0x13177888
push 0x1317788c
push 0x13177894
call sub.kernel32.dll_GetPrivateProfileStringA
lea edx, [ebp - 0x1e0]
mov eax, 0x1a
call fcn.13176c94
push dword [ebp - 0x1e0]
push 0x1317785c
lea eax, [ebp - 0x1e4]
lea edx, [ebp - 0x165]
mov ecx, 0x105
call fcn.131453b0
push dword [ebp - 0x1e4]
push 0x131778a8
lea eax, [ebp - 0x1dc]
mov edx, 4
call fcn.131454d4
mov eax, dword [ebp - 0x1dc]
call fcn.131455d0
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push eax
call sub.kernel32.dll_CreateFileA_1
mov edi, eax
push 0
push edi
call sub.kernel32.dll_GetFileSize_1
mov ebx, eax
mov eax, ebx
call fcn.13142e8c
mov esi, eax
push 0
lea eax, [ebp - 0x48]
push eax
push ebx
push esi
push edi
call sub.kernel32.dll_ReadFile_1
push edi
call sub.kernel32.dll_CloseHandle_1
lea eax, [ebp - 4]
mov edx, esi
call fcn.13145338
mov eax, esi
call fcn.13142ea8
mov edx, dword [ebp - 4]
mov eax, 0x131778c0
call fcn.131456c0
mov ecx, eax
add ecx, 2
lea eax, [ebp - 4]
mov edx, 1
call fcn.13145678
mov eax, dword [ebp - 4]
test eax, eax
je 0x131772b6
sub eax, 4
mov eax, dword [eax]
test eax, eax
jg 0x13177319
lea edx, [ebp - 0x1e8]
mov eax, 0x1a
call fcn.13176c94
push dword [ebp - 0x1e8]
push 0x1317785c
lea eax, [ebp - 0x1ec]
lea edx, [ebp - 0x165]
mov ecx, 0x105
call fcn.131453b0
push dword [ebp - 0x1ec]
push 0x131778cc
lea eax, [ebp - 0x20]
mov edx, 4
call fcn.131454d4
mov eax, dword [ebp - 0x20]
call fcn.13176cdc
lea eax, [ebp - 4]
mov edx, dword [0x1318bb04]
call fcn.131451d8
lea edx, [ebp - 0x1f4]
mov eax, 0x1a
call fcn.13176c94
push dword [ebp - 0x1f4]
push 0x1317785c
lea eax, [ebp - 0x1f8]
lea edx, [ebp - 0x165]
mov ecx, 0x105
call fcn.131453b0
push dword [ebp - 0x1f8]
lea eax, [ebp - 0x1f0]
mov edx, 3
call fcn.131454d4
mov eax, dword [ebp - 0x1f0]
call fcn.131455d0
push eax
call dword [ebp - 0x28]
pop ecx
test eax, eax
jne 0x13177643
call dword [ebp - 0x30]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
je 0x13177640
push 0
push 1
mov eax, dword [ebp - 0x4c]
push eax
call dword [ebp - 0x34]
add esp, 0xc
test eax, eax
jne 0x13177638
jmp 0x13177628
lea eax, [ebp - 8]
push eax
mov edx, dword [ebp - 4]
mov eax, 0x131778c0
call fcn.131456c0
mov ecx, eax
dec ecx
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.13145638
mov eax, dword [ebp - 8]
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0
je 0x131773db
mov eax, dword [ebp - 0x50]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x50]
add ecx, 3
lea eax, [ebp - 4]
mov edx, 1
call fcn.13145678
lea eax, [ebp - 0xc]
push eax
mov edx, dword [ebp - 8]
mov eax, 0x131778e4
call fcn.131456c0
mov ecx, eax
dec ecx
mov edx, 1
mov eax, dword [ebp - 8]
call fcn.13145638
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
je 0x13177426
mov eax, dword [ebp - 0x54]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x54], eax
mov ecx, dword [ebp - 0x54]
add ecx, 2
lea eax, [ebp - 8]
mov edx, 1
call fcn.13145678
push dword [ebp - 0x1c]
push 0x131778f0
push dword [ebp - 0xc]
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.131454d4
jmp 0x13177618
lea eax, [ebp - 0x10]
push eax
mov edx, dword [ebp - 8]
mov eax, 0x131778e4
call fcn.131456c0
mov ecx, eax
dec ecx
mov edx, 1
mov eax, dword [ebp - 8]
call fcn.13145638
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x13177483
sub ebx, 4
mov ebx, dword [ebx]
lea ecx, [ebx + 2]
lea eax, [ebp - 8]
mov edx, 1
call fcn.13145678
mov esi, dword [ebp - 0x10]
test esi, esi
je 0x1317749f
sub esi, 4
mov esi, dword [esi]
push esi
mov eax, dword [ebp - 0x10]
call fcn.131455d0
push eax
lea eax, [ebp - 0x171]
push eax
push 0
call dword [ebp - 0x2c]
add esp, 0x10
push 0
lea eax, [ebp - 0x17d]
push eax
lea eax, [ebp - 0x171]
push eax
call dword [ebp - 0x38]
add esp, 0xc
test eax, eax
jne 0x13177530
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 0x179]
call fcn.13145338
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 0x175]
call fcn.13145804
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 0
je 0x13177505
mov eax, dword [ebp - 0x58]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 0
jne 0x13177518
lea eax, [ebp - 0x10]
mov edx, 0x131778fc
call fcn.131451d8
push dword [ebp - 0x1c]
push 0x13177914
push dword [ebp - 0x18]
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.131454d4
lea eax, [ebp - 0x14]
push eax
mov edx, dword [ebp - 8]
mov eax, 0x131778e4
call fcn.131456c0
mov ecx, eax
dec ecx
mov edx, 1
mov eax, dword [ebp - 8]
call fcn.13145638
mov edi, dword [ebp - 0x14]
test edi, edi
je 0x1317755d
sub edi, 4
mov edi, dword [edi]
lea ecx, [edi + 2]
lea eax, [ebp - 8]
mov edx, 1
call fcn.13145678
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 0
je 0x13177584
mov eax, dword [ebp - 0x5c]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x5c]
push eax
mov eax, dword [ebp - 0x14]
call fcn.131455d0
push eax
lea eax, [ebp - 0x171]
push eax
push 0
call dword [ebp - 0x2c]
add esp, 0x10
push 0
lea eax, [ebp - 0x17d]
push eax
lea eax, [ebp - 0x171]
push eax
call dword [ebp - 0x38]
add esp, 0xc
test eax, eax
jne 0x13177618
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 0x179]
call fcn.13145338
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 0x175]
call fcn.13145804
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x60], eax
cmp dword [ebp - 0x60], 0
je 0x131775ed
mov eax, dword [ebp - 0x60]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x60], eax
cmp dword [ebp - 0x60], 0
jne 0x13177600
lea eax, [ebp - 0x10]
mov edx, 0x131778fc
call fcn.131451d8
push dword [ebp - 0x1c]
push 0x13177914
push dword [ebp - 0x18]
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.131454d4
mov eax, dword [ebp - 8]
call fcn.13145400
test eax, eax
jne 0x13177456
mov eax, dword [ebp - 4]
call fcn.13145400
test eax, eax
jne 0x131773a3
mov eax, dword [ebp - 0x4c]
push eax
call dword [ebp - 0x40]
pop ecx
call dword [ebp - 0x3c]
mov eax, dword [ebp - 0x1c]
call fcn.131455d0
mov edx, eax
mov eax, dword [ebp - 0x24]
call fcn.13145338
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x13177687
lea eax, [ebp - 0x1f8]
mov edx, 0x1e
call fcn.13145164
lea eax, [ebp - 0x20]
mov edx, 8
call fcn.13145164
ret