Function at 0x4618bc
Capabilities:
Get file size
Link many functions at runtime
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], ebx
mov esi, edx
mov edi, eax
xor eax, eax
push ebp
push 0x461b3a
push dword fs:[eax]
mov dword fs:[eax], esp
push ecx
push 0
push 0x1f0fff
call sub.kernel32.dll_OpenProcess
mov ebx, eax
push 0x461b48
push 0x461b58
call sub.kernel32.dll_GetModuleHandleA_2
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebp - 0x4c], eax
push 0x461b68
push 0x461b78
call sub.kernel32.dll_GetModuleHandleA_2
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebp - 0x48], eax
push 0x461b80
push 0x461b58
call sub.kernel32.dll_GetModuleHandleA_2
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebp - 0x3c], eax
push 0x461b8c
push 0x461b58
call sub.kernel32.dll_GetModuleHandleA_2
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebp - 0x40], eax
push 0x461b98
push 0x461b58
call sub.kernel32.dll_GetModuleHandleA_2
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebp - 0x44], eax
push 0x461bac
push 0x461b58
call sub.kernel32.dll_GetModuleHandleA_2
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebp - 0x38], eax
push 0x461bb8
push 0x461b58
call sub.kernel32.dll_GetModuleHandleA_2
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebp - 0x34], eax
push 0x461bc4
push 0x461b58
call sub.kernel32.dll_GetModuleHandleA_2
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebp - 0x30], eax
mov byte [ebp - 0x50], 1
mov dword [ebp - 0x14], esi
lea eax, [ebp - 0x54]
mov edx, edi
call fcn.00405620
mov esi, dword [ebp - 0x54]
test esi, esi
je 0x4619cb
sub esi, 4
mov esi, dword [esi]
push 0x40
push 0x3000
inc esi
push esi
push 0
push ebx
call dword [0x4a854c]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x58]
mov edx, edi
call fcn.00405620
mov eax, dword [ebp - 0x58]
test eax, eax
je 0x4619f6
sub eax, 4
mov eax, dword [eax]
lea edx, [ebp - 8]
push edx
inc eax
push eax
push edi
mov eax, dword [ebp - 0x18]
push eax
push ebx
call dword [0x4a8550]
push 0
push 0x80
push 4
push 0
push 1
push 0x80000000
push edi
call sub.kernel32.dll_CreateFileA_1
mov esi, eax
push 0
push esi
call sub.kernel32.dll_GetFileSize_1
mov dword [ebp - 0x2c], eax
push esi
call sub.kernel32.dll_CloseHandle_1
push 0x40
push 0x3000
mov eax, dword [ebp - 0x2c]
push eax
push 0
call dword [0x4a8548]
mov dword [ebp - 4], eax
push 0
push 0x80
push 4
push 0
push 0
push 0x80000000
push edi
call sub.kernel32.dll_CreateFileA_1
mov esi, eax
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x2c]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
call sub.kernel32.dll_ReadFile_1
push esi
call sub.kernel32.dll_CloseHandle_1
push 0x40
push 0x3000
mov eax, dword [ebp - 0x2c]
push eax
push 0
push ebx
call dword [0x4a854c]
mov esi, eax
mov dword [ebp - 0x1c], esi
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x2c]
inc eax
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push ebx
call dword [0x4a8550]
push 0x40
push 0x3000
push 0x40
push 0
push ebx
call dword [0x4a854c]
mov esi, eax
lea eax, [ebp - 8]
push eax
push 0x40
lea eax, [ebp - 0x50]
push eax
push esi
push ebx
call dword [0x4a8550]
push 0x40
push 0x3000
mov eax, 0x4618b8
sub eax, 0x4617e4
push eax
push 0
push ebx
call dword [0x4a854c]
mov edi, eax
lea eax, [ebp - 8]
push eax
mov eax, 0x4618b8
sub eax, 0x4617e4
push eax
push 0x4617e4
push edi
push ebx
call dword [0x4a8550]
lea eax, [ebp - 0x10]
push eax
push 0
push esi
push edi
push 0
push 0
push ebx
call dword [0x4a8558]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x461b41
lea eax, [ebp - 0x58]
mov edx, 2
call fcn.0040544c
ret