Function at 0x409eec
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 0x409ef4
push ecx
push ebx
push esi
push edi
mov ebx, eax
mov esi, 0x40f1d8
xor eax, eax
push ebp
push 0x40ab99
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [esi], 0
jne 0x409f31
lea eax, [ebp - 0x19c]
call fcn.004061d0
mov edx, dword [ebp - 0x19c]
mov eax, esi
call fcn.00401b14
mov eax, ebx
mov edx, 0x40abb0
call fcn.00401b14
lea eax, [ebp - 0x50]
call fcn.00401ac0
push dword [esi]
push 0x40abbc
push 0x40abd8
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 0x40abbc
push 0x40abf0
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 0x40abbc
push 0x40ac04
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 0x40abbc
push 0x40ac18
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 0x40abbc
push 0x40ac2c
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 0x40abbc
push 0x40ac40
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 0x40abbc
push 0x40ac58
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 0x40abbc
push 0x40ac70
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 0x40ac7c
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetProcAddress
mov esi, eax
mov dword [ebp - 8], esi
test esi, esi
jne 0x40a14c
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 0x40a134
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 0x40a13e
add dword [ebp - 0x5c], 4
dec dword [ebp - 0x54]
jne 0x40a108
jmp 0x40ab56
push 0x40ac88
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetProcAddress
mov edi, eax
mov esi, edi
test edi, edi
jne 0x40a1bd
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 0x40a1a5
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 0x40a1af
add dword [ebp - 0x5c], 4
dec dword [ebp - 0x54]
jne 0x40a179
jmp 0x40ab56
push 0x40aca0
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetProcAddress
mov edi, eax
mov dword [ebp - 0xc], edi
test edi, edi
jne 0x40a22f
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 0x40a217
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 0x40a221
add dword [ebp - 0x5c], 4
dec dword [ebp - 0x54]
jne 0x40a1eb
jmp 0x40ab56
push 0x40acb8
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetProcAddress
mov edi, eax
mov dword [ebp - 0x10], edi
test edi, edi
jne 0x40a2a1
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 0x40a289
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 0x40a293
add dword [ebp - 0x5c], 4
dec dword [ebp - 0x54]
jne 0x40a25d
jmp 0x40ab56
push 0x40accc
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetProcAddress
mov edi, eax
test edi, edi
jne 0x40a310
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 0x40a2f8
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 0x40a302
add dword [ebp - 0x5c], 4
dec dword [ebp - 0x54]
jne 0x40a2cc
jmp 0x40ab56
push 0x40acdc
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetProcAddress
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x40a382
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 0x40a36a
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 0x40a374
add dword [ebp - 0x5c], 4
dec dword [ebp - 0x54]
jne 0x40a33e
jmp 0x40ab56
push 0x40acec
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetProcAddress
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x40a3f4
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 0x40a3dc
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 0x40a3e6
add dword [ebp - 0x5c], 4
dec dword [ebp - 0x54]
jne 0x40a3b0
jmp 0x40ab56
push 0x40acfc
call sub.kernel32.dll_LoadLibraryA
mov dword [ebp - 0x1c], eax
push 0x40ad08
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.00405be0
push dword [ebp - 0x1c4]
push 0x40ad2c
push 0x40ad48
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 0x40ad58
push 0x40ad5c
push 0x40ad64
call sub.kernel32.dll_GetPrivateProfileStringA
lea eax, [ebp - 0x1d0]
call fcn.00405be0
push dword [ebp - 0x1d0]
push 0x40ad2c
lea eax, [ebp - 0x1d4]
lea edx, [ebp - 0x161]
mov ecx, 0x105
call fcn.00401d24
push dword [ebp - 0x1d4]
push 0x40ad78
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.00405cf8
cmp al, 1
jne 0x40a53f
lea eax, [ebp - 0x1dc]
call fcn.00405be0
push dword [ebp - 0x1dc]
push 0x40ad2c
lea eax, [ebp - 0x1e0]
lea edx, [ebp - 0x161]
mov ecx, 0x105
call fcn.00401d24
push dword [ebp - 0x1e0]
push 0x40ad78
lea eax, [ebp - 0x1d8]
mov edx, 4
call fcn.00401e10
mov eax, dword [ebp - 0x1d8]
call fcn.00401f48
jmp 0x40a797
lea eax, [ebp - 0x1ec]
call fcn.00405be0
push dword [ebp - 0x1ec]
push 0x40ad2c
lea eax, [ebp - 0x1f0]
lea edx, [ebp - 0x161]
mov ecx, 0x105
call fcn.00401d24
push dword [ebp - 0x1f0]
push 0x40ad90
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.00405cf8
cmp al, 1
jne 0x40a604
lea eax, [ebp - 0x1f8]
call fcn.00405be0
push dword [ebp - 0x1f8]
push 0x40ad2c
lea eax, [ebp - 0x1fc]
lea edx, [ebp - 0x161]
mov ecx, 0x105
call fcn.00401d24
push dword [ebp - 0x1fc]
push 0x40ad90
lea eax, [ebp - 0x1f4]
mov edx, 4
call fcn.00401e10
mov eax, dword [ebp - 0x1f4]
call fcn.00401f48
jmp 0x40a797
lea eax, [ebp - 0x208]
call fcn.00405be0
push dword [ebp - 0x208]
push 0x40ad2c
lea eax, [ebp - 0x20c]
lea edx, [ebp - 0x161]
mov ecx, 0x105
call fcn.00401d24
push dword [ebp - 0x20c]
push 0x40ada8
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.00405cf8
cmp al, 1
jne 0x40a6c9
lea eax, [ebp - 0x214]
call fcn.00405be0
push dword [ebp - 0x214]
push 0x40ad2c
lea eax, [ebp - 0x218]
lea edx, [ebp - 0x161]
mov ecx, 0x105
call fcn.00401d24
push dword [ebp - 0x218]
push 0x40ada8
lea eax, [ebp - 0x210]
mov edx, 4
call fcn.00401e10
mov eax, dword [ebp - 0x210]
call fcn.00401f48
jmp 0x40a797
lea eax, [ebp - 0x224]
call fcn.00405be0
push dword [ebp - 0x224]
push 0x40ad2c
lea eax, [ebp - 0x228]
lea edx, [ebp - 0x161]
mov ecx, 0x105
call fcn.00401d24
push dword [ebp - 0x228]
push 0x40adc0
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.00405cf8
cmp al, 1
jne 0x40a78b
lea eax, [ebp - 0x230]
call fcn.00405be0
push dword [ebp - 0x230]
push 0x40ad2c
lea eax, [ebp - 0x234]
lea edx, [ebp - 0x161]
mov ecx, 0x105
call fcn.00401d24
push dword [ebp - 0x234]
push 0x40adc0
lea eax, [ebp - 0x22c]
mov edx, 4
call fcn.00401e10
mov eax, dword [ebp - 0x22c]
call fcn.00401f48
jmp 0x40a797
mov eax, ebx
call fcn.00401ac0
jmp 0x40ab56
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, 0x40add8
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.00405be0
push dword [ebp - 0x23c]
push 0x40ad2c
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 0x40aa74
call dword [ebp - 0xc]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
je 0x40aa71
push 0
push 1
mov eax, dword [ebp - 0x4c]
push eax
call dword [ebp - 0x10]
add esp, 0xc
test eax, eax
jne 0x40aa69
jmp 0x40aa59
lea eax, [ebp - 0x3c]
push eax
mov edx, dword [ebp - 0x34]
mov eax, 0x40add8
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, 0x40ade4
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 0x40adf0
push dword [ebp - 0x40]
push 0x40ae00
lea eax, [ebp - 0x50]
mov edx, 4
call fcn.00401e10
jmp 0x40aa49
lea eax, [ebp - 0x44]
push eax
mov edx, dword [ebp - 0x3c]
mov eax, 0x40ade4
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, 0x40ade4
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 0x40aa49
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 0x40aa19
lea eax, [ebp - 0x44]
mov edx, 0x40ae0c
call fcn.00401b58
mov eax, dword [ebp - 0x48]
call fcn.00401d50
test eax, eax
jne 0x40aa32
lea eax, [ebp - 0x48]
mov edx, 0x40ae24
call fcn.00401b58
push dword [ebp - 0x50]
push dword [ebx]
push 0x40ae00
lea eax, [ebp - 0x50]
mov edx, 3
call fcn.00401e10
mov eax, dword [ebp - 0x3c]
call fcn.00401d50
test eax, eax
jne 0x40a937
mov eax, dword [ebp - 0x34]
call fcn.00401d50
test eax, eax
jne 0x40a89f
mov eax, dword [ebp - 0x4c]
push eax
call dword [ebp - 0x18]
pop ecx
call dword [ebp - 0x14]
mov eax, ebx
mov ecx, 0x40adf0
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, 0x40adf0
call fcn.00405920
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, 0x40ae00
call fcn.00405920
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, 0x40ae40
call fcn.00405920
mov edx, dword [ebp - 0x24c]
lea eax, [ebp - 0x58]
call fcn.00401b58
cmp dword [ebp - 0x58], 0
jne 0x40ab07
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 0x40ab43
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 0x40ab4d
add dword [ebp - 0x5c], 4
dec dword [ebp - 0x54]
jne 0x40ab17
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40aba0
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