Function at 0x40c494
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 0x40c49c
push ecx
push ebx
push esi
push edi
mov ebx, eax
mov esi, 0x4111bc
xor eax, eax
push ebp
push 0x40d141
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [esi], 0
jne 0x40c4d9
lea eax, [ebp - 0x19c]
call fcn.00408778
mov edx, dword [ebp - 0x19c]
mov eax, esi
call fcn.004037cc
mov eax, ebx
mov edx, 0x40d158
call fcn.004037cc
lea eax, [ebp - 0x50]
call fcn.00403778
push dword [esi]
push 0x40d164
push 0x40d180
lea eax, [ebp - 0x1a0]
mov edx, 3
call fcn.00403ad4
mov eax, dword [ebp - 0x1a0]
call fcn.00403c14
push eax
call sub.kernel32.dll_LoadLibraryA
mov dword [ebp - 0x198], eax
push dword [esi]
push 0x40d164
push 0x40d198
lea eax, [ebp - 0x1a4]
mov edx, 3
call fcn.00403ad4
mov eax, dword [ebp - 0x1a4]
call fcn.00403c14
push eax
call sub.kernel32.dll_LoadLibraryA
mov dword [ebp - 0x194], eax
push dword [esi]
push 0x40d164
push 0x40d1ac
lea eax, [ebp - 0x1a8]
mov edx, 3
call fcn.00403ad4
mov eax, dword [ebp - 0x1a8]
call fcn.00403c14
push eax
call sub.kernel32.dll_LoadLibraryA
mov dword [ebp - 0x190], eax
push dword [esi]
push 0x40d164
push 0x40d1c0
lea eax, [ebp - 0x1ac]
mov edx, 3
call fcn.00403ad4
mov eax, dword [ebp - 0x1ac]
call fcn.00403c14
push eax
call sub.kernel32.dll_LoadLibraryA
mov dword [ebp - 0x18c], eax
push dword [esi]
push 0x40d164
push 0x40d1d4
lea eax, [ebp - 0x1b0]
mov edx, 3
call fcn.00403ad4
mov eax, dword [ebp - 0x1b0]
call fcn.00403c14
push eax
call sub.kernel32.dll_LoadLibraryA
mov dword [ebp - 0x188], eax
push dword [esi]
push 0x40d164
push 0x40d1e8
lea eax, [ebp - 0x1b4]
mov edx, 3
call fcn.00403ad4
mov eax, dword [ebp - 0x1b4]
call fcn.00403c14
push eax
call sub.kernel32.dll_LoadLibraryA
mov dword [ebp - 0x184], eax
push dword [esi]
push 0x40d164
push 0x40d200
lea eax, [ebp - 0x1b8]
mov edx, 3
call fcn.00403ad4
mov eax, dword [ebp - 0x1b8]
call fcn.00403c14
push eax
call sub.kernel32.dll_LoadLibraryA
mov dword [ebp - 0x180], eax
push dword [esi]
push 0x40d164
push 0x40d218
lea eax, [ebp - 0x1bc]
mov edx, 3
call fcn.00403ad4
mov eax, dword [ebp - 0x1bc]
call fcn.00403c14
push eax
call sub.kernel32.dll_LoadLibraryA
mov dword [ebp - 4], eax
push 0x40d224
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetProcAddress
mov esi, eax
mov dword [ebp - 8], esi
test esi, esi
jne 0x40c6f4
mov eax, ebx
call fcn.00403778
mov dword [ebp - 0x54], 7
lea eax, [ebp - 0x198]
mov dword [ebp - 0x5c], eax
xor eax, eax
push ebp
push 0x40c6dc
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 0x40c6e6
add dword [ebp - 0x5c], 4
dec dword [ebp - 0x54]
jne 0x40c6b0
jmp 0x40d0fe
push 0x40d230
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetProcAddress
mov edi, eax
mov esi, edi
test edi, edi
jne 0x40c765
mov eax, ebx
call fcn.00403778
mov dword [ebp - 0x54], 7
lea eax, [ebp - 0x198]
mov dword [ebp - 0x5c], eax
xor eax, eax
push ebp
push 0x40c74d
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 0x40c757
add dword [ebp - 0x5c], 4
dec dword [ebp - 0x54]
jne 0x40c721
jmp 0x40d0fe
push 0x40d248
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetProcAddress
mov edi, eax
mov dword [ebp - 0xc], edi
test edi, edi
jne 0x40c7d7
mov eax, ebx
call fcn.00403778
mov dword [ebp - 0x54], 7
lea eax, [ebp - 0x198]
mov dword [ebp - 0x5c], eax
xor eax, eax
push ebp
push 0x40c7bf
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 0x40c7c9
add dword [ebp - 0x5c], 4
dec dword [ebp - 0x54]
jne 0x40c793
jmp 0x40d0fe
push 0x40d260
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetProcAddress
mov edi, eax
mov dword [ebp - 0x10], edi
test edi, edi
jne 0x40c849
mov eax, ebx
call fcn.00403778
mov dword [ebp - 0x54], 7
lea eax, [ebp - 0x198]
mov dword [ebp - 0x5c], eax
xor eax, eax
push ebp
push 0x40c831
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 0x40c83b
add dword [ebp - 0x5c], 4
dec dword [ebp - 0x54]
jne 0x40c805
jmp 0x40d0fe
push 0x40d274
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetProcAddress
mov edi, eax
test edi, edi
jne 0x40c8b8
mov eax, ebx
call fcn.00403778
mov dword [ebp - 0x54], 7
lea eax, [ebp - 0x198]
mov dword [ebp - 0x5c], eax
xor eax, eax
push ebp
push 0x40c8a0
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 0x40c8aa
add dword [ebp - 0x5c], 4
dec dword [ebp - 0x54]
jne 0x40c874
jmp 0x40d0fe
push 0x40d284
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetProcAddress
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x40c92a
mov eax, ebx
call fcn.00403778
mov dword [ebp - 0x54], 7
lea eax, [ebp - 0x198]
mov dword [ebp - 0x5c], eax
xor eax, eax
push ebp
push 0x40c912
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 0x40c91c
add dword [ebp - 0x5c], 4
dec dword [ebp - 0x54]
jne 0x40c8e6
jmp 0x40d0fe
push 0x40d294
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetProcAddress
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x40c99c
mov eax, ebx
call fcn.00403778
mov dword [ebp - 0x54], 7
lea eax, [ebp - 0x198]
mov dword [ebp - 0x5c], eax
xor eax, eax
push ebp
push 0x40c984
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 0x40c98e
add dword [ebp - 0x5c], 4
dec dword [ebp - 0x54]
jne 0x40c958
jmp 0x40d0fe
push 0x40d2a4
call sub.kernel32.dll_LoadLibraryA
mov dword [ebp - 0x1c], eax
push 0x40d2b0
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.00408188
push dword [ebp - 0x1c4]
push 0x40d2d4
push 0x40d2f0
lea eax, [ebp - 0x1c0]
mov edx, 3
call fcn.00403ad4
mov eax, dword [ebp - 0x1c0]
call fcn.00403c14
push eax
push 0x104
lea eax, [ebp - 0x161]
push eax
push 0x40d300
push 0x40d304
push 0x40d30c
call sub.kernel32.dll_GetPrivateProfileStringA
lea eax, [ebp - 0x1d0]
call fcn.00408188
push dword [ebp - 0x1d0]
push 0x40d2d4
lea eax, [ebp - 0x1d4]
lea edx, [ebp - 0x161]
mov ecx, 0x105
call fcn.004039e8
push dword [ebp - 0x1d4]
push 0x40d320
lea eax, [ebp - 0x1cc]
mov edx, 4
call fcn.00403ad4
mov eax, dword [ebp - 0x1cc]
call fcn.00403c14
mov edx, eax
lea eax, [ebp - 0x1c8]
call fcn.00403970
mov eax, dword [ebp - 0x1c8]
call fcn.004082a0
cmp al, 1
jne 0x40cae7
lea eax, [ebp - 0x1dc]
call fcn.00408188
push dword [ebp - 0x1dc]
push 0x40d2d4
lea eax, [ebp - 0x1e0]
lea edx, [ebp - 0x161]
mov ecx, 0x105
call fcn.004039e8
push dword [ebp - 0x1e0]
push 0x40d320
lea eax, [ebp - 0x1d8]
mov edx, 4
call fcn.00403ad4
mov eax, dword [ebp - 0x1d8]
call fcn.00403c14
jmp 0x40cd3f
lea eax, [ebp - 0x1ec]
call fcn.00408188
push dword [ebp - 0x1ec]
push 0x40d2d4
lea eax, [ebp - 0x1f0]
lea edx, [ebp - 0x161]
mov ecx, 0x105
call fcn.004039e8
push dword [ebp - 0x1f0]
push 0x40d338
lea eax, [ebp - 0x1e8]
mov edx, 4
call fcn.00403ad4
mov eax, dword [ebp - 0x1e8]
call fcn.00403c14
mov edx, eax
lea eax, [ebp - 0x1e4]
call fcn.00403970
mov eax, dword [ebp - 0x1e4]
call fcn.004082a0
cmp al, 1
jne 0x40cbac
lea eax, [ebp - 0x1f8]
call fcn.00408188
push dword [ebp - 0x1f8]
push 0x40d2d4
lea eax, [ebp - 0x1fc]
lea edx, [ebp - 0x161]
mov ecx, 0x105
call fcn.004039e8
push dword [ebp - 0x1fc]
push 0x40d338
lea eax, [ebp - 0x1f4]
mov edx, 4
call fcn.00403ad4
mov eax, dword [ebp - 0x1f4]
call fcn.00403c14
jmp 0x40cd3f
lea eax, [ebp - 0x208]
call fcn.00408188
push dword [ebp - 0x208]
push 0x40d2d4
lea eax, [ebp - 0x20c]
lea edx, [ebp - 0x161]
mov ecx, 0x105
call fcn.004039e8
push dword [ebp - 0x20c]
push 0x40d350
lea eax, [ebp - 0x204]
mov edx, 4
call fcn.00403ad4
mov eax, dword [ebp - 0x204]
call fcn.00403c14
mov edx, eax
lea eax, [ebp - 0x200]
call fcn.00403970
mov eax, dword [ebp - 0x200]
call fcn.004082a0
cmp al, 1
jne 0x40cc71
lea eax, [ebp - 0x214]
call fcn.00408188
push dword [ebp - 0x214]
push 0x40d2d4
lea eax, [ebp - 0x218]
lea edx, [ebp - 0x161]
mov ecx, 0x105
call fcn.004039e8
push dword [ebp - 0x218]
push 0x40d350
lea eax, [ebp - 0x210]
mov edx, 4
call fcn.00403ad4
mov eax, dword [ebp - 0x210]
call fcn.00403c14
jmp 0x40cd3f
lea eax, [ebp - 0x224]
call fcn.00408188
push dword [ebp - 0x224]
push 0x40d2d4
lea eax, [ebp - 0x228]
lea edx, [ebp - 0x161]
mov ecx, 0x105
call fcn.004039e8
push dword [ebp - 0x228]
push 0x40d368
lea eax, [ebp - 0x220]
mov edx, 4
call fcn.00403ad4
mov eax, dword [ebp - 0x220]
call fcn.00403c14
mov edx, eax
lea eax, [ebp - 0x21c]
call fcn.00403970
mov eax, dword [ebp - 0x21c]
call fcn.004082a0
cmp al, 1
jne 0x40cd33
lea eax, [ebp - 0x230]
call fcn.00408188
push dword [ebp - 0x230]
push 0x40d2d4
lea eax, [ebp - 0x234]
lea edx, [ebp - 0x161]
mov ecx, 0x105
call fcn.004039e8
push dword [ebp - 0x234]
push 0x40d368
lea eax, [ebp - 0x22c]
mov edx, 4
call fcn.00403ad4
mov eax, dword [ebp - 0x22c]
call fcn.00403c14
jmp 0x40cd3f
mov eax, ebx
call fcn.00403778
jmp 0x40d0fe
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.00402850
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.00403970
mov eax, dword [ebp - 0x30]
call fcn.00402880
mov edx, dword [ebp - 0x34]
mov eax, 0x40d380
call fcn.00403cfc
mov ecx, eax
add ecx, 2
lea eax, [ebp - 0x34]
mov edx, 1
call fcn.00403cb4
lea eax, [ebp - 0x23c]
call fcn.00408188
push dword [ebp - 0x23c]
push 0x40d2d4
lea eax, [ebp - 0x240]
lea edx, [ebp - 0x161]
mov ecx, 0x105
call fcn.004039e8
push dword [ebp - 0x240]
lea eax, [ebp - 0x238]
mov edx, 3
call fcn.00403ad4
mov eax, dword [ebp - 0x238]
call fcn.00403c14
push eax
call dword [ebp - 8]
pop ecx
test eax, eax
jne 0x40d01c
call dword [ebp - 0xc]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
je 0x40d019
push 0
push 1
mov eax, dword [ebp - 0x4c]
push eax
call dword [ebp - 0x10]
add esp, 0xc
test eax, eax
jne 0x40d011
jmp 0x40d001
lea eax, [ebp - 0x3c]
push eax
mov edx, dword [ebp - 0x34]
mov eax, 0x40d380
call fcn.00403cfc
mov ecx, eax
dec ecx
mov edx, 1
mov eax, dword [ebp - 0x34]
call fcn.00403c74
mov eax, dword [ebp - 0x3c]
call fcn.00403a14
mov ecx, eax
add ecx, 3
lea eax, [ebp - 0x34]
mov edx, 1
call fcn.00403cb4
lea eax, [ebp - 0x40]
push eax
mov edx, dword [ebp - 0x3c]
mov eax, 0x40d38c
call fcn.00403cfc
mov ecx, eax
dec ecx
mov edx, 1
mov eax, dword [ebp - 0x3c]
call fcn.00403c74
mov eax, dword [ebp - 0x40]
call fcn.00403a14
mov ecx, eax
add ecx, 2
lea eax, [ebp - 0x3c]
mov edx, 1
call fcn.00403cb4
push dword [ebp - 0x50]
push 0x40d398
push dword [ebp - 0x40]
push 0x40d3a8
lea eax, [ebp - 0x50]
mov edx, 4
call fcn.00403ad4
jmp 0x40cff1
lea eax, [ebp - 0x44]
push eax
mov edx, dword [ebp - 0x3c]
mov eax, 0x40d38c
call fcn.00403cfc
mov ecx, eax
dec ecx
mov edx, 1
mov eax, dword [ebp - 0x3c]
call fcn.00403c74
mov eax, dword [ebp - 0x44]
call fcn.00403a14
mov ecx, eax
add ecx, 2
lea eax, [ebp - 0x3c]
mov edx, 1
call fcn.00403cb4
lea eax, [ebp - 0x48]
push eax
mov edx, dword [ebp - 0x3c]
mov eax, 0x40d38c
call fcn.00403cfc
mov ecx, eax
dec ecx
mov edx, 1
mov eax, dword [ebp - 0x3c]
call fcn.00403c74
mov eax, dword [ebp - 0x48]
call fcn.00403a14
mov ecx, eax
add ecx, 2
lea eax, [ebp - 0x3c]
mov edx, 1
call fcn.00403cb4
mov eax, dword [ebp - 0x48]
call fcn.00403a14
push eax
mov eax, dword [ebp - 0x48]
call fcn.00403c14
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 0x40cff1
mov eax, ebx
mov edx, dword [ebp - 0x175]
call fcn.00403970
mov eax, ebx
mov edx, dword [ebp - 0x171]
call fcn.00403d44
mov eax, dword [ebp - 0x44]
call fcn.00403a14
test eax, eax
jne 0x40cfc1
lea eax, [ebp - 0x44]
mov edx, 0x40d3b4
call fcn.00403810
mov eax, dword [ebp - 0x48]
call fcn.00403a14
test eax, eax
jne 0x40cfda
lea eax, [ebp - 0x48]
mov edx, 0x40d3cc
call fcn.00403810
push dword [ebp - 0x50]
push dword [ebx]
push 0x40d3a8
lea eax, [ebp - 0x50]
mov edx, 3
call fcn.00403ad4
mov eax, dword [ebp - 0x3c]
call fcn.00403a14
test eax, eax
jne 0x40cedf
mov eax, dword [ebp - 0x34]
call fcn.00403a14
test eax, eax
jne 0x40ce47
mov eax, dword [ebp - 0x4c]
push eax
call dword [ebp - 0x18]
pop ecx
call dword [ebp - 0x14]
mov eax, ebx
mov ecx, 0x40d398
mov edx, dword [ebp - 0x50]
call fcn.00403a60
lea eax, [ebp - 0x58]
mov edx, dword [ebp - 0x50]
call fcn.00403810
lea eax, [ebp - 0x244]
push eax
mov ecx, dword [ebp - 0x58]
xor edx, edx
mov eax, 0x40d398
call fcn.00407ec8
mov edx, dword [ebp - 0x244]
lea eax, [ebp - 0x58]
call fcn.00403810
lea eax, [ebp - 0x248]
push eax
mov ecx, dword [ebp - 0x58]
xor edx, edx
mov eax, 0x40d3a8
call fcn.00407ec8
mov edx, dword [ebp - 0x248]
lea eax, [ebp - 0x58]
call fcn.00403810
lea eax, [ebp - 0x24c]
push eax
mov ecx, dword [ebp - 0x58]
xor edx, edx
mov eax, 0x40d3e8
call fcn.00407ec8
mov edx, dword [ebp - 0x24c]
lea eax, [ebp - 0x58]
call fcn.00403810
cmp dword [ebp - 0x58], 0
jne 0x40d0af
mov eax, ebx
call fcn.00403778
mov dword [ebp - 0x54], 7
lea eax, [ebp - 0x198]
mov dword [ebp - 0x5c], eax
xor eax, eax
push ebp
push 0x40d0eb
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 0x40d0f5
add dword [ebp - 0x5c], 4
dec dword [ebp - 0x54]
jne 0x40d0bf
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d148
lea eax, [ebp - 0x24c]
mov edx, 0x2d
call fcn.0040379c
lea eax, [ebp - 0x58]
call fcn.00403778
lea eax, [ebp - 0x50]
call fcn.00403778
lea eax, [ebp - 0x48]
mov edx, 4
call fcn.0040379c
lea eax, [ebp - 0x34]
call fcn.00403778
ret