Function at 0x4c5cd0
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x5e58d8
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x65f810]
xor eax, esp
mov dword [esp + 0x44], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x65f810]
xor eax, esp
push eax
lea eax, [esp + 0x5c]
mov dword fs:[0], eax
mov edi, dword [esp + 0x6c]
push 1
sub esp, 0x1c
xor ebx, ebx
mov esi, ecx
mov ecx, esp
xor eax, eax
mov dword [ecx + 0x18], 7
mov dword [ecx + 0x14], ebx
mov word [ecx + 4], ax
mov eax, edi
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x44], esp
lea ebp, [eax + 2]
mov edi, edi
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x4c5d30
sub eax, ebp
sar eax, 1
push eax
push edi
call fcn.00439ce0
call fcn.0059f0f0
add esp, 0x20
push ebx
push 0x80
push 3
push ebx
push 1
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov dword [esi + 0x5c], eax
cmp eax, 0xffffffff
je 0x4c609c
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4c5d76
sub eax, edx
sar eax, 1
push eax
push edi
lea ecx, [esi + 0x60]
call fcn.00439ce0
mov ecx, dword [esi + 0x5c]
push ebx
push ecx
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov ebx, eax
mov dword [esp + 0x20], ebx
cmp ebx, 0x30
jbe 0x4c6065
mov ecx, dword [esi + 0x5c]
push 0
lea edx, [esp + 0x18]
push edx
push 0x30
lea eax, [esi + 4]
push eax
push ecx
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x4c6012
cmp dword [esp + 0x14], 0x30
jne 0x4c6012
cmp dword [esi + 0x10], 0x20
jne 0x4c600b
mov eax, dword [esi + 8]
mov ebp, eax
shl ebp, 5
mov dword [esp + 0x24], ebp
test eax, eax
jbe 0x4c5f42
lea edx, [ebp + 0x30]
cmp ebx, edx
jbe 0x4c5f42
xor ecx, ecx
mov edx, 0x20
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004cf9f2
add esp, 4
mov dword [esi + 0x34], eax
test eax, eax
je 0x4c5f3b
mov edx, dword [esi + 0x5c]
push 0
lea ecx, [esp + 0x18]
push ecx
push ebp
push eax
push edx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x4c5f06
cmp dword [esp + 0x14], ebp
jne 0x4c5f06
xor ebx, ebx
mov dword [esp + 0x18], 0
cmp dword [esi + 8], ebx
jbe 0x4c5eef
xor ebp, ebp
mov eax, dword [esi + 0x34]
mov ecx, dword [eax + ebp]
add eax, ebp
lea edx, [esp + 0x28]
mov dword [esp + 0x2c], eax
push edx
lea eax, [esp + 0x34]
mov dword [esp + 0x2c], ecx
push eax
lea ecx, [esi + 0x3c]
call fcn.004c49d0
cmp byte [eax + 8], 0
je 0x4c5e90
inc dword [esp + 0x18]
jmp 0x4c5ede
mov ecx, dword [esi + 0x34]
mov edx, dword [ecx + ebp]
push 0x5fb250
push edx
push 0x5fb23c
push str._DBE::CDBase_struct_DBE::_DBINFO_struct_DBE::_ITEMDB_::Init_
push 0x66ded8
call fcn.00432d30
add esp, 8
push eax
call fcn.00432d30
add esp, 8
mov ecx, eax
call fcn.004c2b10
push eax
call fcn.00432d30
add esp, 8
mov edi, eax
push 0xa
mov ecx, edi
call fcn.0047bab0
mov ecx, edi
call fcn.00435770
inc ebx
add ebp, 0x20
cmp ebx, dword [esi + 8]
jb 0x4c5e62
mov ebp, dword [esp + 0x24]
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x20]
cmp eax, dword [esi + 8]
jne 0x4c5f74
mov dword [esp + 0x1c], 1
jmp 0x4c5f74
push 0x5fb250
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push 0x5fb1e0
push str._DBE::CDBase_struct_DBE::_DBINFO_struct_DBE::_ITEMDB_::Init_
push 0x66ded8
call fcn.00432d30
add esp, 8
push eax
call fcn.00432d30
add esp, 8
mov ecx, eax
call fcn.004c2b10
jmp 0x4c5f59
push 0x5fb1c8
jmp 0x4c5f47
push 0x5fb1a0
push str._DBE::CDBase_struct_DBE::_DBINFO_struct_DBE::_ITEMDB_::Init_
push 0x66ded8
call fcn.00432d30
add esp, 8
push eax
call fcn.00432d30
add esp, 8
mov edi, eax
push 0xa
mov ecx, edi
call fcn.0047bab0
mov ecx, edi
call fcn.00435770
mov eax, dword [esi + 0x14]
test eax, eax
jbe 0x4c614b
lea ecx, [eax + ebp + 0x30]
cmp ebx, ecx
jb 0x4c614b
push eax
call fcn.004cf9f2
add esp, 4
mov dword [esi + 0x38], eax
test eax, eax
je 0x4c6004
mov ecx, dword [esi + 0x14]
push 0
lea edx, [esp + 0x18]
push edx
mov edx, dword [esi + 0x5c]
push ecx
push eax
push edx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x4c5fcf
mov eax, dword [esp + 0x14]
cmp eax, dword [esi + 0x14]
jne 0x4c5fcf
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4c614b
jmp 0x4c614d
push 0x5fb250
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push 0x5fb1e0
push str._DBE::CDBase_struct_DBE::_DBINFO_struct_DBE::_ITEMDB_::Init_
push 0x66ded8
call fcn.00432d30
add esp, 8
push eax
call fcn.00432d30
add esp, 8
mov ecx, eax
call fcn.004c2b10
jmp 0x4c607c
push 0x5fb184
jmp 0x4c606a
push 0x5fb170
jmp 0x4c606a
push 0x5fb250
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push 0x5fb15c
push str._DBE::CDBase_struct_DBE::_DBINFO_struct_DBE::_ITEMDB_::Init_
push 0x66ded8
call fcn.00432d30
add esp, 8
push eax
call fcn.00432d30
add esp, 8
mov ecx, eax
call fcn.004c2b10
push eax
call fcn.00432d30
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.0047bab0
mov ecx, esi
call fcn.00435770
jmp 0x4c614b
push 0x5fb138
push str._DBE::CDBase_struct_DBE::_DBINFO_struct_DBE::_ITEMDB_::Init_
push 0x66ded8
call fcn.00432d30
add esp, 8
push eax
call fcn.00432d30
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.0047bab0
mov ecx, esi
call fcn.00435770
jmp 0x4c614b
mov dword [esp + 0x54], 0xf
mov dword [esp + 0x50], ebx
mov byte [esp + 0x40], bl
lea ecx, [esp + 0x3c]
push ecx
push edi
push ebx
mov dword [esp + 0x70], ebx
call fcn.004c2c60
mov esi, dword [esp + 0x4c]
mov edi, 0x10
add esp, 0xc
cmp dword [esp + 0x54], edi
jae 0x4c60d2
lea esi, [esp + 0x40]
push 0x5fb250
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push 0x5fb130
push esi
push 0x5fb128
push str._DBE::CDBase_struct_DBE::_DBINFO_struct_DBE::_ITEMDB_::Init_
push 0x66ded8
call fcn.00432d30
add esp, 8
push eax
call fcn.00432d30
add esp, 8
push eax
call fcn.00432d30
add esp, 8
push eax
call fcn.00432d30
add esp, 8
mov ecx, eax
call fcn.004c2b10
push eax
call fcn.00432d30
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.0047bab0
mov ecx, esi
call fcn.00435770
cmp dword [esp + 0x54], edi
jb 0x4c614b
mov edx, dword [esp + 0x40]
push edx
call fcn.00506f70
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x5c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.005792fc
add esp, 0x54
ret 4