Function at 0x409ef8
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 0x409f00
push ecx
push ebx
push esi
push edi
mov ebx, eax
mov esi, 0x40f1d4
xor eax, eax
push ebp
push 0x40aba5
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [esi], 0
jne 0x409f3d
lea eax, [ebp - 0x19c]
call fcn.004061dc
mov edx, dword [ebp - 0x19c]
mov eax, esi
call fcn.00401b14
mov eax, ebx
mov edx, 0x40abbc
call fcn.00401b14
lea eax, [ebp - 0x50]
call fcn.00401ac0
push dword [esi]
push 0x40abc8
push 0x40abe4
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 0x40abc8
push 0x40abfc
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 0x40abc8
push 0x40ac10
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 0x40abc8
push 0x40ac24
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 0x40abc8
push 0x40ac38
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 0x40abc8
push 0x40ac4c
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 0x40abc8
push 0x40ac64
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 0x40abc8
push 0x40ac7c
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 0x40ac88
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetProcAddress
mov esi, eax
mov dword [ebp - 8], esi
test esi, esi
jne 0x40a158
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 0x40a140
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 0x40a14a
add dword [ebp - 0x5c], 4
dec dword [ebp - 0x54]
jne 0x40a114
jmp 0x40ab62
push 0x40ac94
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetProcAddress
mov edi, eax
mov esi, edi
test edi, edi
jne 0x40a1c9
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 0x40a1b1
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 0x40a1bb
add dword [ebp - 0x5c], 4
dec dword [ebp - 0x54]
jne 0x40a185
jmp 0x40ab62
push 0x40acac
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetProcAddress
mov edi, eax
mov dword [ebp - 0xc], edi
test edi, edi
jne 0x40a23b
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 0x40a223
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 0x40a22d
add dword [ebp - 0x5c], 4
dec dword [ebp - 0x54]
jne 0x40a1f7
jmp 0x40ab62
push 0x40acc4
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetProcAddress
mov edi, eax
mov dword [ebp - 0x10], edi
test edi, edi
jne 0x40a2ad
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 0x40a295
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 0x40a29f
add dword [ebp - 0x5c], 4
dec dword [ebp - 0x54]
jne 0x40a269
jmp 0x40ab62
push 0x40acd8
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetProcAddress
mov edi, eax
test edi, edi
jne 0x40a31c
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 0x40a304
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 0x40a30e
add dword [ebp - 0x5c], 4
dec dword [ebp - 0x54]
jne 0x40a2d8
jmp 0x40ab62
push 0x40ace8
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetProcAddress
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x40a38e
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 0x40a376
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 0x40a380
add dword [ebp - 0x5c], 4
dec dword [ebp - 0x54]
jne 0x40a34a
jmp 0x40ab62
push 0x40acf8
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetProcAddress
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x40a400
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 0x40a3e8
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 0x40a3f2
add dword [ebp - 0x5c], 4
dec dword [ebp - 0x54]
jne 0x40a3bc
jmp 0x40ab62
push 0x40ad08
call sub.kernel32.dll_LoadLibraryA
mov dword [ebp - 0x1c], eax
push 0x40ad14
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.00405bec
push dword [ebp - 0x1c4]
push 0x40ad38
push 0x40ad54
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 0x40ad64
push 0x40ad68
push 0x40ad70
call sub.kernel32.dll_GetPrivateProfileStringA
lea eax, [ebp - 0x1d0]
call fcn.00405bec
push dword [ebp - 0x1d0]
push 0x40ad38
lea eax, [ebp - 0x1d4]
lea edx, [ebp - 0x161]
mov ecx, 0x105
call fcn.00401d24
push dword [ebp - 0x1d4]
push 0x40ad84
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.00405d04
cmp al, 1
jne 0x40a54b
lea eax, [ebp - 0x1dc]
call fcn.00405bec
push dword [ebp - 0x1dc]
push 0x40ad38
lea eax, [ebp - 0x1e0]
lea edx, [ebp - 0x161]
mov ecx, 0x105
call fcn.00401d24
push dword [ebp - 0x1e0]
push 0x40ad84
lea eax, [ebp - 0x1d8]
mov edx, 4
call fcn.00401e10
mov eax, dword [ebp - 0x1d8]
call fcn.00401f48
jmp 0x40a7a3
lea eax, [ebp - 0x1ec]
call fcn.00405bec
push dword [ebp - 0x1ec]
push 0x40ad38
lea eax, [ebp - 0x1f0]
lea edx, [ebp - 0x161]
mov ecx, 0x105
call fcn.00401d24
push dword [ebp - 0x1f0]
push 0x40ad9c
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.00405d04
cmp al, 1
jne 0x40a610
lea eax, [ebp - 0x1f8]
call fcn.00405bec
push dword [ebp - 0x1f8]
push 0x40ad38
lea eax, [ebp - 0x1fc]
lea edx, [ebp - 0x161]
mov ecx, 0x105
call fcn.00401d24
push dword [ebp - 0x1fc]
push 0x40ad9c
lea eax, [ebp - 0x1f4]
mov edx, 4
call fcn.00401e10
mov eax, dword [ebp - 0x1f4]
call fcn.00401f48
jmp 0x40a7a3
lea eax, [ebp - 0x208]
call fcn.00405bec
push dword [ebp - 0x208]
push 0x40ad38
lea eax, [ebp - 0x20c]
lea edx, [ebp - 0x161]
mov ecx, 0x105
call fcn.00401d24
push dword [ebp - 0x20c]
push 0x40adb4
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.00405d04
cmp al, 1
jne 0x40a6d5
lea eax, [ebp - 0x214]
call fcn.00405bec
push dword [ebp - 0x214]
push 0x40ad38
lea eax, [ebp - 0x218]
lea edx, [ebp - 0x161]
mov ecx, 0x105
call fcn.00401d24
push dword [ebp - 0x218]
push 0x40adb4
lea eax, [ebp - 0x210]
mov edx, 4
call fcn.00401e10
mov eax, dword [ebp - 0x210]
call fcn.00401f48
jmp 0x40a7a3
lea eax, [ebp - 0x224]
call fcn.00405bec
push dword [ebp - 0x224]
push 0x40ad38
lea eax, [ebp - 0x228]
lea edx, [ebp - 0x161]
mov ecx, 0x105
call fcn.00401d24
push dword [ebp - 0x228]
push 0x40adcc
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.00405d04
cmp al, 1
jne 0x40a797
lea eax, [ebp - 0x230]
call fcn.00405bec
push dword [ebp - 0x230]
push 0x40ad38
lea eax, [ebp - 0x234]
lea edx, [ebp - 0x161]
mov ecx, 0x105
call fcn.00401d24
push dword [ebp - 0x234]
push 0x40adcc
lea eax, [ebp - 0x22c]
mov edx, 4
call fcn.00401e10
mov eax, dword [ebp - 0x22c]
call fcn.00401f48
jmp 0x40a7a3
mov eax, ebx
call fcn.00401ac0
jmp 0x40ab62
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, 0x40ade4
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.00405bec
push dword [ebp - 0x23c]
push 0x40ad38
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 0x40aa80
call dword [ebp - 0xc]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
je 0x40aa7d
push 0
push 1
mov eax, dword [ebp - 0x4c]
push eax
call dword [ebp - 0x10]
add esp, 0xc
test eax, eax
jne 0x40aa75
jmp 0x40aa65
lea eax, [ebp - 0x3c]
push eax
mov edx, dword [ebp - 0x34]
mov eax, 0x40ade4
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, 0x40adf0
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 0x40adfc
push dword [ebp - 0x40]
push 0x40ae0c
lea eax, [ebp - 0x50]
mov edx, 4
call fcn.00401e10
jmp 0x40aa55
lea eax, [ebp - 0x44]
push eax
mov edx, dword [ebp - 0x3c]
mov eax, 0x40adf0
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, 0x40adf0
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 0x40aa55
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 0x40aa25
lea eax, [ebp - 0x44]
mov edx, 0x40ae18
call fcn.00401b58
mov eax, dword [ebp - 0x48]
call fcn.00401d50
test eax, eax
jne 0x40aa3e
lea eax, [ebp - 0x48]
mov edx, 0x40ae30
call fcn.00401b58
push dword [ebp - 0x50]
push dword [ebx]
push 0x40ae0c
lea eax, [ebp - 0x50]
mov edx, 3
call fcn.00401e10
mov eax, dword [ebp - 0x3c]
call fcn.00401d50
test eax, eax
jne 0x40a943
mov eax, dword [ebp - 0x34]
call fcn.00401d50
test eax, eax
jne 0x40a8ab
mov eax, dword [ebp - 0x4c]
push eax
call dword [ebp - 0x18]
pop ecx
call dword [ebp - 0x14]
mov eax, ebx
mov ecx, 0x40adfc
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, 0x40adfc
call fcn.0040592c
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, 0x40ae0c
call fcn.0040592c
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, 0x40ae4c
call fcn.0040592c
mov edx, dword [ebp - 0x24c]
lea eax, [ebp - 0x58]
call fcn.00401b58
cmp dword [ebp - 0x58], 0
jne 0x40ab13
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 0x40ab4f
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 0x40ab59
add dword [ebp - 0x5c], 4
dec dword [ebp - 0x54]
jne 0x40ab23
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40abac
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