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

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x49
push 0
push 0
dec ecx
jne 0x409ef0
push ecx
push ebx
push esi
push edi
mov ebx, eax
mov esi, 0x40f1d0
xor eax, eax
push ebp
push 0x40ab95
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [esi], 0
jne 0x409f2d
lea eax, [ebp - 0x19c]
call fcn.004061cc
mov edx, dword [ebp - 0x19c]
mov eax, esi
call fcn.00401b14
mov eax, ebx
mov edx, 0x40abac
call fcn.00401b14
lea eax, [ebp - 0x50]
call fcn.00401ac0
push dword [esi]
push 0x40abb8
push 0x40abd4
lea eax, [ebp - 0x1a0]
mov edx, 3
call fcn.00401e10
mov eax, dword [ebp - 0x1a0]
call fcn.00401f48
push eax
call sub.kernel32.dll_LoadLibraryA
mov dword [ebp - 0x198], eax
push dword [esi]
push 0x40abb8
push 0x40abec
lea eax, [ebp - 0x1a4]
mov edx, 3
call fcn.00401e10
mov eax, dword [ebp - 0x1a4]
call fcn.00401f48
push eax
call sub.kernel32.dll_LoadLibraryA
mov dword [ebp - 0x194], eax
push dword [esi]
push 0x40abb8
push 0x40ac00
lea eax, [ebp - 0x1a8]
mov edx, 3
call fcn.00401e10
mov eax, dword [ebp - 0x1a8]
call fcn.00401f48
push eax
call sub.kernel32.dll_LoadLibraryA
mov dword [ebp - 0x190], eax
push dword [esi]
push 0x40abb8
push 0x40ac14
lea eax, [ebp - 0x1ac]
mov edx, 3
call fcn.00401e10
mov eax, dword [ebp - 0x1ac]
call fcn.00401f48
push eax
call sub.kernel32.dll_LoadLibraryA
mov dword [ebp - 0x18c], eax
push dword [esi]
push 0x40abb8
push 0x40ac28
lea eax, [ebp - 0x1b0]
mov edx, 3
call fcn.00401e10
mov eax, dword [ebp - 0x1b0]
call fcn.00401f48
push eax
call sub.kernel32.dll_LoadLibraryA
mov dword [ebp - 0x188], eax
push dword [esi]
push 0x40abb8
push 0x40ac3c
lea eax, [ebp - 0x1b4]
mov edx, 3
call fcn.00401e10
mov eax, dword [ebp - 0x1b4]
call fcn.00401f48
push eax
call sub.kernel32.dll_LoadLibraryA
mov dword [ebp - 0x184], eax
push dword [esi]
push 0x40abb8
push 0x40ac54
lea eax, [ebp - 0x1b8]
mov edx, 3
call fcn.00401e10
mov eax, dword [ebp - 0x1b8]
call fcn.00401f48
push eax
call sub.kernel32.dll_LoadLibraryA
mov dword [ebp - 0x180], eax
push dword [esi]
push 0x40abb8
push 0x40ac6c
lea eax, [ebp - 0x1bc]
mov edx, 3
call fcn.00401e10
mov eax, dword [ebp - 0x1bc]
call fcn.00401f48
push eax
call sub.kernel32.dll_LoadLibraryA
mov dword [ebp - 4], eax
push 0x40ac78
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetProcAddress
mov esi, eax
mov dword [ebp - 8], esi
test esi, esi
jne 0x40a148
mov eax, ebx
call fcn.00401ac0
mov dword [ebp - 0x54], 7
lea eax, [ebp - 0x198]
mov dword [ebp - 0x5c], eax
xor eax, eax
push ebp
push 0x40a130
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_FreeLibrary_1
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_FreeLibrary_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x40a13a
add dword [ebp - 0x5c], 4
dec dword [ebp - 0x54]
jne 0x40a104
jmp 0x40ab52
push 0x40ac84
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetProcAddress
mov edi, eax
mov esi, edi
test edi, edi
jne 0x40a1b9
mov eax, ebx
call fcn.00401ac0
mov dword [ebp - 0x54], 7
lea eax, [ebp - 0x198]
mov dword [ebp - 0x5c], eax
xor eax, eax
push ebp
push 0x40a1a1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_FreeLibrary_1
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_FreeLibrary_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x40a1ab
add dword [ebp - 0x5c], 4
dec dword [ebp - 0x54]
jne 0x40a175
jmp 0x40ab52
push 0x40ac9c
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetProcAddress
mov edi, eax
mov dword [ebp - 0xc], edi
test edi, edi
jne 0x40a22b
mov eax, ebx
call fcn.00401ac0
mov dword [ebp - 0x54], 7
lea eax, [ebp - 0x198]
mov dword [ebp - 0x5c], eax
xor eax, eax
push ebp
push 0x40a213
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_FreeLibrary_1
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_FreeLibrary_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x40a21d
add dword [ebp - 0x5c], 4
dec dword [ebp - 0x54]
jne 0x40a1e7
jmp 0x40ab52
push 0x40acb4
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetProcAddress
mov edi, eax
mov dword [ebp - 0x10], edi
test edi, edi
jne 0x40a29d
mov eax, ebx
call fcn.00401ac0
mov dword [ebp - 0x54], 7
lea eax, [ebp - 0x198]
mov dword [ebp - 0x5c], eax
xor eax, eax
push ebp
push 0x40a285
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_FreeLibrary_1
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_FreeLibrary_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x40a28f
add dword [ebp - 0x5c], 4
dec dword [ebp - 0x54]
jne 0x40a259
jmp 0x40ab52
push 0x40acc8
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetProcAddress
mov edi, eax
test edi, edi
jne 0x40a30c
mov eax, ebx
call fcn.00401ac0
mov dword [ebp - 0x54], 7
lea eax, [ebp - 0x198]
mov dword [ebp - 0x5c], eax
xor eax, eax
push ebp
push 0x40a2f4
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_FreeLibrary_1
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_FreeLibrary_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x40a2fe
add dword [ebp - 0x5c], 4
dec dword [ebp - 0x54]
jne 0x40a2c8
jmp 0x40ab52
push 0x40acd8
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetProcAddress
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x40a37e
mov eax, ebx
call fcn.00401ac0
mov dword [ebp - 0x54], 7
lea eax, [ebp - 0x198]
mov dword [ebp - 0x5c], eax
xor eax, eax
push ebp
push 0x40a366
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_FreeLibrary_1
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_FreeLibrary_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x40a370
add dword [ebp - 0x5c], 4
dec dword [ebp - 0x54]
jne 0x40a33a
jmp 0x40ab52
push 0x40ace8
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetProcAddress
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x40a3f0
mov eax, ebx
call fcn.00401ac0
mov dword [ebp - 0x54], 7
lea eax, [ebp - 0x198]
mov dword [ebp - 0x5c], eax
xor eax, eax
push ebp
push 0x40a3d8
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_FreeLibrary_1
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_FreeLibrary_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x40a3e2
add dword [ebp - 0x5c], 4
dec dword [ebp - 0x54]
jne 0x40a3ac
jmp 0x40ab52
push 0x40acf8
call sub.kernel32.dll_LoadLibraryA
mov dword [ebp - 0x1c], eax
push 0x40ad04
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_GetProcAddress
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x24]
push eax
push 8
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
lea eax, [ebp - 0x1c4]
call fcn.00405bdc
push dword [ebp - 0x1c4]
push 0x40ad28
push 0x40ad44
lea eax, [ebp - 0x1c0]
mov edx, 3
call fcn.00401e10
mov eax, dword [ebp - 0x1c0]
call fcn.00401f48
push eax
push 0x104
lea eax, [ebp - 0x161]
push eax
push 0x40ad54
push 0x40ad58
push 0x40ad60
call sub.kernel32.dll_GetPrivateProfileStringA
lea eax, [ebp - 0x1d0]
call fcn.00405bdc
push dword [ebp - 0x1d0]
push 0x40ad28
lea eax, [ebp - 0x1d4]
lea edx, [ebp - 0x161]
mov ecx, 0x105
call fcn.00401d24
push dword [ebp - 0x1d4]
push 0x40ad74
lea eax, [ebp - 0x1cc]
mov edx, 4
call fcn.00401e10
mov eax, dword [ebp - 0x1cc]
call fcn.00401f48
mov edx, eax
lea eax, [ebp - 0x1c8]
call fcn.00401cac
mov eax, dword [ebp - 0x1c8]
call fcn.00405cf4
cmp al, 1
jne 0x40a53b
lea eax, [ebp - 0x1dc]
call fcn.00405bdc
push dword [ebp - 0x1dc]
push 0x40ad28
lea eax, [ebp - 0x1e0]
lea edx, [ebp - 0x161]
mov ecx, 0x105
call fcn.00401d24
push dword [ebp - 0x1e0]
push 0x40ad74
lea eax, [ebp - 0x1d8]
mov edx, 4
call fcn.00401e10
mov eax, dword [ebp - 0x1d8]
call fcn.00401f48
jmp 0x40a793
lea eax, [ebp - 0x1ec]
call fcn.00405bdc
push dword [ebp - 0x1ec]
push 0x40ad28
lea eax, [ebp - 0x1f0]
lea edx, [ebp - 0x161]
mov ecx, 0x105
call fcn.00401d24
push dword [ebp - 0x1f0]
push 0x40ad8c
lea eax, [ebp - 0x1e8]
mov edx, 4
call fcn.00401e10
mov eax, dword [ebp - 0x1e8]
call fcn.00401f48
mov edx, eax
lea eax, [ebp - 0x1e4]
call fcn.00401cac
mov eax, dword [ebp - 0x1e4]
call fcn.00405cf4
cmp al, 1
jne 0x40a600
lea eax, [ebp - 0x1f8]
call fcn.00405bdc
push dword [ebp - 0x1f8]
push 0x40ad28
lea eax, [ebp - 0x1fc]
lea edx, [ebp - 0x161]
mov ecx, 0x105
call fcn.00401d24
push dword [ebp - 0x1fc]
push 0x40ad8c
lea eax, [ebp - 0x1f4]
mov edx, 4
call fcn.00401e10
mov eax, dword [ebp - 0x1f4]
call fcn.00401f48
jmp 0x40a793
lea eax, [ebp - 0x208]
call fcn.00405bdc
push dword [ebp - 0x208]
push 0x40ad28
lea eax, [ebp - 0x20c]
lea edx, [ebp - 0x161]
mov ecx, 0x105
call fcn.00401d24
push dword [ebp - 0x20c]
push 0x40ada4
lea eax, [ebp - 0x204]
mov edx, 4
call fcn.00401e10
mov eax, dword [ebp - 0x204]
call fcn.00401f48
mov edx, eax
lea eax, [ebp - 0x200]
call fcn.00401cac
mov eax, dword [ebp - 0x200]
call fcn.00405cf4
cmp al, 1
jne 0x40a6c5
lea eax, [ebp - 0x214]
call fcn.00405bdc
push dword [ebp - 0x214]
push 0x40ad28
lea eax, [ebp - 0x218]
lea edx, [ebp - 0x161]
mov ecx, 0x105
call fcn.00401d24
push dword [ebp - 0x218]
push 0x40ada4
lea eax, [ebp - 0x210]
mov edx, 4
call fcn.00401e10
mov eax, dword [ebp - 0x210]
call fcn.00401f48
jmp 0x40a793
lea eax, [ebp - 0x224]
call fcn.00405bdc
push dword [ebp - 0x224]
push 0x40ad28
lea eax, [ebp - 0x228]
lea edx, [ebp - 0x161]
mov ecx, 0x105
call fcn.00401d24
push dword [ebp - 0x228]
push 0x40adbc
lea eax, [ebp - 0x220]
mov edx, 4
call fcn.00401e10
mov eax, dword [ebp - 0x220]
call fcn.00401f48
mov edx, eax
lea eax, [ebp - 0x21c]
call fcn.00401cac
mov eax, dword [ebp - 0x21c]
call fcn.00405cf4
cmp al, 1
jne 0x40a787
lea eax, [ebp - 0x230]
call fcn.00405bdc
push dword [ebp - 0x230]
push 0x40ad28
lea eax, [ebp - 0x234]
lea edx, [ebp - 0x161]
mov ecx, 0x105
call fcn.00401d24
push dword [ebp - 0x234]
push 0x40adbc
lea eax, [ebp - 0x22c]
mov edx, 4
call fcn.00401e10
mov eax, dword [ebp - 0x22c]
call fcn.00401f48
jmp 0x40a793
mov eax, ebx
call fcn.00401ac0
jmp 0x40ab52
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push eax
call sub.kernel32.dll_CreateFileA
mov dword [ebp - 0x28], eax
push 0
mov eax, dword [ebp - 0x28]
push eax
call sub.kernel32.dll_GetFileSize
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
call fcn.00401174
mov dword [ebp - 0x30], eax
push 0
lea eax, [ebp - 0x38]
push eax
mov eax, dword [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x28]
push eax
call sub.kernel32.dll_ReadFile
mov eax, dword [ebp - 0x28]
push eax
call sub.kernel32.dll_CloseHandle
lea eax, [ebp - 0x34]
mov edx, dword [ebp - 0x30]
call fcn.00401cac
mov eax, dword [ebp - 0x30]
call fcn.0040118c
mov edx, dword [ebp - 0x34]
mov eax, 0x40add4
call fcn.0040202c
mov ecx, eax
add ecx, 2
lea eax, [ebp - 0x34]
mov edx, 1
call fcn.00401fe4
lea eax, [ebp - 0x23c]
call fcn.00405bdc
push dword [ebp - 0x23c]
push 0x40ad28
lea eax, [ebp - 0x240]
lea edx, [ebp - 0x161]
mov ecx, 0x105
call fcn.00401d24
push dword [ebp - 0x240]
lea eax, [ebp - 0x238]
mov edx, 3
call fcn.00401e10
mov eax, dword [ebp - 0x238]
call fcn.00401f48
push eax
call dword [ebp - 8]
pop ecx
test eax, eax
jne 0x40aa70
call dword [ebp - 0xc]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
je 0x40aa6d
push 0
push 1
mov eax, dword [ebp - 0x4c]
push eax
call dword [ebp - 0x10]
add esp, 0xc
test eax, eax
jne 0x40aa65
jmp 0x40aa55
lea eax, [ebp - 0x3c]
push eax
mov edx, dword [ebp - 0x34]
mov eax, 0x40add4
call fcn.0040202c
mov ecx, eax
dec ecx
mov edx, 1
mov eax, dword [ebp - 0x34]
call fcn.00401fa4
mov eax, dword [ebp - 0x3c]
call fcn.00401d50
mov ecx, eax
add ecx, 3
lea eax, [ebp - 0x34]
mov edx, 1
call fcn.00401fe4
lea eax, [ebp - 0x40]
push eax
mov edx, dword [ebp - 0x3c]
mov eax, 0x40ade0
call fcn.0040202c
mov ecx, eax
dec ecx
mov edx, 1
mov eax, dword [ebp - 0x3c]
call fcn.00401fa4
mov eax, dword [ebp - 0x40]
call fcn.00401d50
mov ecx, eax
add ecx, 2
lea eax, [ebp - 0x3c]
mov edx, 1
call fcn.00401fe4
push dword [ebp - 0x50]
push 0x40adec
push dword [ebp - 0x40]
push 0x40adfc
lea eax, [ebp - 0x50]
mov edx, 4
call fcn.00401e10
jmp 0x40aa45
lea eax, [ebp - 0x44]
push eax
mov edx, dword [ebp - 0x3c]
mov eax, 0x40ade0
call fcn.0040202c
mov ecx, eax
dec ecx
mov edx, 1
mov eax, dword [ebp - 0x3c]
call fcn.00401fa4
mov eax, dword [ebp - 0x44]
call fcn.00401d50
mov ecx, eax
add ecx, 2
lea eax, [ebp - 0x3c]
mov edx, 1
call fcn.00401fe4
lea eax, [ebp - 0x48]
push eax
mov edx, dword [ebp - 0x3c]
mov eax, 0x40ade0
call fcn.0040202c
mov ecx, eax
dec ecx
mov edx, 1
mov eax, dword [ebp - 0x3c]
call fcn.00401fa4
mov eax, dword [ebp - 0x48]
call fcn.00401d50
mov ecx, eax
add ecx, 2
lea eax, [ebp - 0x3c]
mov edx, 1
call fcn.00401fe4
mov eax, dword [ebp - 0x48]
call fcn.00401d50
push eax
mov eax, dword [ebp - 0x48]
call fcn.00401f48
push eax
lea eax, [ebp - 0x16d]
push eax
push 0
call esi
add esp, 0x10
push 0
lea eax, [ebp - 0x179]
push eax
lea eax, [ebp - 0x16d]
push eax
call edi
add esp, 0xc
test eax, eax
jne 0x40aa45
mov eax, ebx
mov edx, dword [ebp - 0x175]
call fcn.00401cac
mov eax, ebx
mov edx, dword [ebp - 0x171]
call fcn.00402074
mov eax, dword [ebp - 0x44]
call fcn.00401d50
test eax, eax
jne 0x40aa15
lea eax, [ebp - 0x44]
mov edx, 0x40ae08
call fcn.00401b58
mov eax, dword [ebp - 0x48]
call fcn.00401d50
test eax, eax
jne 0x40aa2e
lea eax, [ebp - 0x48]
mov edx, 0x40ae20
call fcn.00401b58
push dword [ebp - 0x50]
push dword [ebx]
push 0x40adfc
lea eax, [ebp - 0x50]
mov edx, 3
call fcn.00401e10
mov eax, dword [ebp - 0x3c]
call fcn.00401d50
test eax, eax
jne 0x40a933
mov eax, dword [ebp - 0x34]
call fcn.00401d50
test eax, eax
jne 0x40a89b
mov eax, dword [ebp - 0x4c]
push eax
call dword [ebp - 0x18]
pop ecx
call dword [ebp - 0x14]
mov eax, ebx
mov ecx, 0x40adec
mov edx, dword [ebp - 0x50]
call fcn.00401d9c
lea eax, [ebp - 0x58]
mov edx, dword [ebp - 0x50]
call fcn.00401b58
lea eax, [ebp - 0x244]
push eax
mov ecx, dword [ebp - 0x58]
xor edx, edx
mov eax, 0x40adec
call fcn.0040591c
mov edx, dword [ebp - 0x244]
lea eax, [ebp - 0x58]
call fcn.00401b58
lea eax, [ebp - 0x248]
push eax
mov ecx, dword [ebp - 0x58]
xor edx, edx
mov eax, 0x40adfc
call fcn.0040591c
mov edx, dword [ebp - 0x248]
lea eax, [ebp - 0x58]
call fcn.00401b58
lea eax, [ebp - 0x24c]
push eax
mov ecx, dword [ebp - 0x58]
xor edx, edx
mov eax, 0x40ae3c
call fcn.0040591c
mov edx, dword [ebp - 0x24c]
lea eax, [ebp - 0x58]
call fcn.00401b58
cmp dword [ebp - 0x58], 0
jne 0x40ab03
mov eax, ebx
call fcn.00401ac0
mov dword [ebp - 0x54], 7
lea eax, [ebp - 0x198]
mov dword [ebp - 0x5c], eax
xor eax, eax
push ebp
push 0x40ab3f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_FreeLibrary_1
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_FreeLibrary_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x40ab49
add dword [ebp - 0x5c], 4
dec dword [ebp - 0x54]
jne 0x40ab13
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ab9c
lea eax, [ebp - 0x24c]
mov edx, 0x2d
call fcn.00401ae4
lea eax, [ebp - 0x58]
call fcn.00401ac0
lea eax, [ebp - 0x50]
call fcn.00401ac0
lea eax, [ebp - 0x48]
mov edx, 4
call fcn.00401ae4
lea eax, [ebp - 0x34]
call fcn.00401ac0
ret