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

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x47
push 0
push 0
dec ecx
jne 0x4111e4
push ecx
push ebx
push esi
push edi
mov ebx, eax
mov esi, 0x42943c
xor eax, eax
push ebp
push 0x411dfd
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [esi], 0
jne 0x411221
lea eax, [ebp - 0x198]
call fcn.004066c8
mov edx, dword [ebp - 0x198]
mov eax, esi
call fcn.00402a38
mov eax, ebx
mov edx, 0x411e14
call fcn.00402a38
lea eax, [ebp - 0x50]
call fcn.004029e4
push dword [esi]
push 0x411e20
push 0x411e3c
lea eax, [ebp - 0x19c]
mov edx, 3
call fcn.00402d20
mov eax, dword [ebp - 0x19c]
call fcn.00402e58
push eax
call sub.kernel32.dll_LoadLibraryA
mov dword [ebp - 0x194], eax
push dword [esi]
push 0x411e20
push 0x411e54
lea eax, [ebp - 0x1a0]
mov edx, 3
call fcn.00402d20
mov eax, dword [ebp - 0x1a0]
call fcn.00402e58
push eax
call sub.kernel32.dll_LoadLibraryA
mov dword [ebp - 0x190], eax
push dword [esi]
push 0x411e20
push 0x411e68
lea eax, [ebp - 0x1a4]
mov edx, 3
call fcn.00402d20
mov eax, dword [ebp - 0x1a4]
call fcn.00402e58
push eax
call sub.kernel32.dll_LoadLibraryA
mov dword [ebp - 0x18c], eax
push dword [esi]
push 0x411e20
push 0x411e7c
lea eax, [ebp - 0x1a8]
mov edx, 3
call fcn.00402d20
mov eax, dword [ebp - 0x1a8]
call fcn.00402e58
push eax
call sub.kernel32.dll_LoadLibraryA
mov dword [ebp - 0x188], eax
push dword [esi]
push 0x411e20
push 0x411e90
lea eax, [ebp - 0x1ac]
mov edx, 3
call fcn.00402d20
mov eax, dword [ebp - 0x1ac]
call fcn.00402e58
push eax
call sub.kernel32.dll_LoadLibraryA
mov dword [ebp - 0x184], eax
push dword [esi]
push 0x411e20
push 0x411ea4
lea eax, [ebp - 0x1b0]
mov edx, 3
call fcn.00402d20
mov eax, dword [ebp - 0x1b0]
call fcn.00402e58
push eax
call sub.kernel32.dll_LoadLibraryA
mov dword [ebp - 0x180], eax
push dword [esi]
push 0x411e20
push 0x411ebc
lea eax, [ebp - 0x1b4]
mov edx, 3
call fcn.00402d20
mov eax, dword [ebp - 0x1b4]
call fcn.00402e58
push eax
call sub.kernel32.dll_LoadLibraryA
mov dword [ebp - 0x17c], eax
push dword [esi]
push 0x411e20
push 0x411ed4
lea eax, [ebp - 0x1b8]
mov edx, 3
call fcn.00402d20
mov eax, dword [ebp - 0x1b8]
call fcn.00402e58
push eax
call sub.kernel32.dll_LoadLibraryA
mov dword [ebp - 4], eax
push 0x411ee0
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetProcAddress
mov esi, eax
mov dword [ebp - 8], esi
test esi, esi
jne 0x41143c
mov eax, ebx
call fcn.004029e4
mov dword [ebp - 0x54], 7
lea eax, [ebp - 0x194]
mov dword [ebp - 0x58], eax
xor eax, eax
push ebp
push 0x411424
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x58]
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 0x41142e
add dword [ebp - 0x58], 4
dec dword [ebp - 0x54]
jne 0x4113f8
jmp 0x411dc2
push 0x411eec
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetProcAddress
mov edi, eax
mov esi, edi
test edi, edi
jne 0x4114ad
mov eax, ebx
call fcn.004029e4
mov dword [ebp - 0x54], 7
lea eax, [ebp - 0x194]
mov dword [ebp - 0x58], eax
xor eax, eax
push ebp
push 0x411495
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x58]
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 0x41149f
add dword [ebp - 0x58], 4
dec dword [ebp - 0x54]
jne 0x411469
jmp 0x411dc2
push 0x411f04
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetProcAddress
mov edi, eax
mov dword [ebp - 0xc], edi
test edi, edi
jne 0x41151f
mov eax, ebx
call fcn.004029e4
mov dword [ebp - 0x54], 7
lea eax, [ebp - 0x194]
mov dword [ebp - 0x58], eax
xor eax, eax
push ebp
push 0x411507
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x58]
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 0x411511
add dword [ebp - 0x58], 4
dec dword [ebp - 0x54]
jne 0x4114db
jmp 0x411dc2
push 0x411f1c
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetProcAddress
mov edi, eax
mov dword [ebp - 0x10], edi
test edi, edi
jne 0x411591
mov eax, ebx
call fcn.004029e4
mov dword [ebp - 0x54], 7
lea eax, [ebp - 0x194]
mov dword [ebp - 0x58], eax
xor eax, eax
push ebp
push 0x411579
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x58]
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 0x411583
add dword [ebp - 0x58], 4
dec dword [ebp - 0x54]
jne 0x41154d
jmp 0x411dc2
push 0x411f30
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetProcAddress
mov edi, eax
test edi, edi
jne 0x411600
mov eax, ebx
call fcn.004029e4
mov dword [ebp - 0x54], 7
lea eax, [ebp - 0x194]
mov dword [ebp - 0x58], eax
xor eax, eax
push ebp
push 0x4115e8
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x58]
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 0x4115f2
add dword [ebp - 0x58], 4
dec dword [ebp - 0x54]
jne 0x4115bc
jmp 0x411dc2
push 0x411f40
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetProcAddress
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x411672
mov eax, ebx
call fcn.004029e4
mov dword [ebp - 0x54], 7
lea eax, [ebp - 0x194]
mov dword [ebp - 0x58], eax
xor eax, eax
push ebp
push 0x41165a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x58]
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 0x411664
add dword [ebp - 0x58], 4
dec dword [ebp - 0x54]
jne 0x41162e
jmp 0x411dc2
push 0x411f50
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetProcAddress
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x4116e4
mov eax, ebx
call fcn.004029e4
mov dword [ebp - 0x54], 7
lea eax, [ebp - 0x194]
mov dword [ebp - 0x58], eax
xor eax, eax
push ebp
push 0x4116cc
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x58]
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 0x4116d6
add dword [ebp - 0x58], 4
dec dword [ebp - 0x54]
jne 0x4116a0
jmp 0x411dc2
push 0x411f60
call sub.kernel32.dll_LoadLibraryA
mov dword [ebp - 0x1c], eax
push 0x411f6c
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 - 0x1c0]
call fcn.00406128
push dword [ebp - 0x1c0]
push 0x411f90
push 0x411fac
lea eax, [ebp - 0x1bc]
mov edx, 3
call fcn.00402d20
mov eax, dword [ebp - 0x1bc]
call fcn.00402e58
push eax
push 0x104
lea eax, [ebp - 0x15d]
push eax
push 0x411fbc
push 0x411fc0
push 0x411fc8
call sub.kernel32.dll_GetPrivateProfileStringA
lea eax, [ebp - 0x1cc]
call fcn.00406128
push dword [ebp - 0x1cc]
push 0x411f90
lea eax, [ebp - 0x1d0]
lea edx, [ebp - 0x15d]
mov ecx, 0x105
call fcn.00402c48
push dword [ebp - 0x1d0]
push 0x411fdc
lea eax, [ebp - 0x1c8]
mov edx, 4
call fcn.00402d20
mov eax, dword [ebp - 0x1c8]
call fcn.00402e58
mov edx, eax
lea eax, [ebp - 0x1c4]
call fcn.00402bd0
mov eax, dword [ebp - 0x1c4]
call fcn.00405df4
cmp al, 1
jne 0x41182f
lea eax, [ebp - 0x1d8]
call fcn.00406128
push dword [ebp - 0x1d8]
push 0x411f90
lea eax, [ebp - 0x1dc]
lea edx, [ebp - 0x15d]
mov ecx, 0x105
call fcn.00402c48
push dword [ebp - 0x1dc]
push 0x411fdc
lea eax, [ebp - 0x1d4]
mov edx, 4
call fcn.00402d20
mov eax, dword [ebp - 0x1d4]
call fcn.00402e58
jmp 0x411a87
lea eax, [ebp - 0x1e8]
call fcn.00406128
push dword [ebp - 0x1e8]
push 0x411f90
lea eax, [ebp - 0x1ec]
lea edx, [ebp - 0x15d]
mov ecx, 0x105
call fcn.00402c48
push dword [ebp - 0x1ec]
push 0x411ff4
lea eax, [ebp - 0x1e4]
mov edx, 4
call fcn.00402d20
mov eax, dword [ebp - 0x1e4]
call fcn.00402e58
mov edx, eax
lea eax, [ebp - 0x1e0]
call fcn.00402bd0
mov eax, dword [ebp - 0x1e0]
call fcn.00405df4
cmp al, 1
jne 0x4118f4
lea eax, [ebp - 0x1f4]
call fcn.00406128
push dword [ebp - 0x1f4]
push 0x411f90
lea eax, [ebp - 0x1f8]
lea edx, [ebp - 0x15d]
mov ecx, 0x105
call fcn.00402c48
push dword [ebp - 0x1f8]
push 0x411ff4
lea eax, [ebp - 0x1f0]
mov edx, 4
call fcn.00402d20
mov eax, dword [ebp - 0x1f0]
call fcn.00402e58
jmp 0x411a87
lea eax, [ebp - 0x204]
call fcn.00406128
push dword [ebp - 0x204]
push 0x411f90
lea eax, [ebp - 0x208]
lea edx, [ebp - 0x15d]
mov ecx, 0x105
call fcn.00402c48
push dword [ebp - 0x208]
push 0x41200c
lea eax, [ebp - 0x200]
mov edx, 4
call fcn.00402d20
mov eax, dword [ebp - 0x200]
call fcn.00402e58
mov edx, eax
lea eax, [ebp - 0x1fc]
call fcn.00402bd0
mov eax, dword [ebp - 0x1fc]
call fcn.00405df4
cmp al, 1
jne 0x4119b9
lea eax, [ebp - 0x210]
call fcn.00406128
push dword [ebp - 0x210]
push 0x411f90
lea eax, [ebp - 0x214]
lea edx, [ebp - 0x15d]
mov ecx, 0x105
call fcn.00402c48
push dword [ebp - 0x214]
push 0x41200c
lea eax, [ebp - 0x20c]
mov edx, 4
call fcn.00402d20
mov eax, dword [ebp - 0x20c]
call fcn.00402e58
jmp 0x411a87
lea eax, [ebp - 0x220]
call fcn.00406128
push dword [ebp - 0x220]
push 0x411f90
lea eax, [ebp - 0x224]
lea edx, [ebp - 0x15d]
mov ecx, 0x105
call fcn.00402c48
push dword [ebp - 0x224]
push 0x412024
lea eax, [ebp - 0x21c]
mov edx, 4
call fcn.00402d20
mov eax, dword [ebp - 0x21c]
call fcn.00402e58
mov edx, eax
lea eax, [ebp - 0x218]
call fcn.00402bd0
mov eax, dword [ebp - 0x218]
call fcn.00405df4
cmp al, 1
jne 0x411a7b
lea eax, [ebp - 0x22c]
call fcn.00406128
push dword [ebp - 0x22c]
push 0x411f90
lea eax, [ebp - 0x230]
lea edx, [ebp - 0x15d]
mov ecx, 0x105
call fcn.00402c48
push dword [ebp - 0x230]
push 0x412024
lea eax, [ebp - 0x228]
mov edx, 4
call fcn.00402d20
mov eax, dword [ebp - 0x228]
call fcn.00402e58
jmp 0x411a87
mov eax, ebx
call fcn.004029e4
jmp 0x411dc2
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push eax
call sub.kernel32.dll_CreateFileA_1
mov dword [ebp - 0x28], eax
push 0
mov eax, dword [ebp - 0x28]
push eax
call sub.kernel32.dll_GetFileSize_1
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
call fcn.004011dc
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_1
mov eax, dword [ebp - 0x28]
push eax
call sub.kernel32.dll_CloseHandle_1
lea eax, [ebp - 0x34]
mov edx, dword [ebp - 0x30]
call fcn.00402bd0
mov eax, dword [ebp - 0x30]
call fcn.004011f4
mov edx, dword [ebp - 0x34]
mov eax, 0x41203c
call fcn.00402f98
mov ecx, eax
add ecx, 2
lea eax, [ebp - 0x34]
mov edx, 1
call fcn.00402ef4
lea eax, [ebp - 0x238]
call fcn.00406128
push dword [ebp - 0x238]
push 0x411f90
lea eax, [ebp - 0x23c]
lea edx, [ebp - 0x15d]
mov ecx, 0x105
call fcn.00402c48
push dword [ebp - 0x23c]
lea eax, [ebp - 0x234]
mov edx, 3
call fcn.00402d20
mov eax, dword [ebp - 0x234]
call fcn.00402e58
push eax
call dword [ebp - 8]
pop ecx
test eax, eax
jne 0x411d64
call dword [ebp - 0xc]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
je 0x411d61
push 0
push 1
mov eax, dword [ebp - 0x4c]
push eax
call dword [ebp - 0x10]
add esp, 0xc
test eax, eax
jne 0x411d59
jmp 0x411d49
lea eax, [ebp - 0x3c]
push eax
mov edx, dword [ebp - 0x34]
mov eax, 0x41203c
call fcn.00402f98
mov ecx, eax
dec ecx
mov edx, 1
mov eax, dword [ebp - 0x34]
call fcn.00402eb4
mov eax, dword [ebp - 0x3c]
call fcn.00402c60
mov ecx, eax
add ecx, 3
lea eax, [ebp - 0x34]
mov edx, 1
call fcn.00402ef4
lea eax, [ebp - 0x40]
push eax
mov edx, dword [ebp - 0x3c]
mov eax, 0x412048
call fcn.00402f98
mov ecx, eax
dec ecx
mov edx, 1
mov eax, dword [ebp - 0x3c]
call fcn.00402eb4
mov eax, dword [ebp - 0x40]
call fcn.00402c60
mov ecx, eax
add ecx, 2
lea eax, [ebp - 0x3c]
mov edx, 1
call fcn.00402ef4
push dword [ebp - 0x50]
push 0x412054
push dword [ebp - 0x40]
push 0x412064
lea eax, [ebp - 0x50]
mov edx, 4
call fcn.00402d20
jmp 0x411d39
lea eax, [ebp - 0x44]
push eax
mov edx, dword [ebp - 0x3c]
mov eax, 0x412048
call fcn.00402f98
mov ecx, eax
dec ecx
mov edx, 1
mov eax, dword [ebp - 0x3c]
call fcn.00402eb4
mov eax, dword [ebp - 0x44]
call fcn.00402c60
mov ecx, eax
add ecx, 2
lea eax, [ebp - 0x3c]
mov edx, 1
call fcn.00402ef4
lea eax, [ebp - 0x48]
push eax
mov edx, dword [ebp - 0x3c]
mov eax, 0x412048
call fcn.00402f98
mov ecx, eax
dec ecx
mov edx, 1
mov eax, dword [ebp - 0x3c]
call fcn.00402eb4
mov eax, dword [ebp - 0x48]
call fcn.00402c60
mov ecx, eax
add ecx, 2
lea eax, [ebp - 0x3c]
mov edx, 1
call fcn.00402ef4
mov eax, dword [ebp - 0x48]
call fcn.00402c60
push eax
mov eax, dword [ebp - 0x48]
call fcn.00402e58
push eax
lea eax, [ebp - 0x169]
push eax
push 0
call esi
add esp, 0x10
push 0
lea eax, [ebp - 0x175]
push eax
lea eax, [ebp - 0x169]
push eax
call edi
add esp, 0xc
test eax, eax
jne 0x411d39
mov eax, ebx
mov edx, dword [ebp - 0x171]
call fcn.00402bd0
mov eax, ebx
mov edx, dword [ebp - 0x16d]
call fcn.00402fe0
mov eax, dword [ebp - 0x44]
call fcn.00402c60
test eax, eax
jne 0x411d09
lea eax, [ebp - 0x44]
mov edx, 0x412070
call fcn.00402a7c
mov eax, dword [ebp - 0x48]
call fcn.00402c60
test eax, eax
jne 0x411d22
lea eax, [ebp - 0x48]
mov edx, 0x412088
call fcn.00402a7c
push dword [ebp - 0x50]
push dword [ebx]
push 0x412064
lea eax, [ebp - 0x50]
mov edx, 3
call fcn.00402d20
mov eax, dword [ebp - 0x3c]
call fcn.00402c60
test eax, eax
jne 0x411c27
mov eax, dword [ebp - 0x34]
call fcn.00402c60
test eax, eax
jne 0x411b8f
mov eax, dword [ebp - 0x4c]
push eax
call dword [ebp - 0x18]
pop ecx
call dword [ebp - 0x14]
mov eax, ebx
mov ecx, 0x412054
mov edx, dword [ebp - 0x50]
call fcn.00402cac
mov dword [ebp - 0x54], 7
lea eax, [ebp - 0x194]
mov dword [ebp - 0x58], eax
xor eax, eax
push ebp
push 0x411daf
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x58]
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 0x411db9
add dword [ebp - 0x58], 4
dec dword [ebp - 0x54]
jne 0x411d83
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x411e04
lea eax, [ebp - 0x23c]
mov edx, 0x2a
call fcn.00402a08
lea eax, [ebp - 0x50]
call fcn.004029e4
lea eax, [ebp - 0x48]
mov edx, 4
call fcn.00402a08
lea eax, [ebp - 0x34]
call fcn.004029e4
ret