Function at 0x4c6170
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 0x4c61d0
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 + 0x40], eax
cmp eax, 0xffffffff
je 0x4c653c
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4c6216
sub eax, edx
sar eax, 1
push eax
push edi
lea ecx, [esi + 0x44]
call fcn.00439ce0
mov ecx, dword [esi + 0x40]
push ebx
push ecx
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov ebx, eax
mov dword [esp + 0x20], ebx
cmp ebx, 0x14
jbe 0x4c6505
mov ecx, dword [esi + 0x40]
push 0
lea edx, [esp + 0x18]
push edx
push 0x14
lea eax, [esi + 4]
push eax
push ecx
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x4c64b2
cmp dword [esp + 0x14], 0x14
jne 0x4c64b2
cmp dword [esi + 0x10], 0x68
jne 0x4c64ab
mov eax, dword [esi + 8]
mov ebp, eax
imul ebp, ebp, 0x68
mov dword [esp + 0x24], ebp
test eax, eax
jbe 0x4c63e2
lea edx, [ebp + 0x14]
cmp ebx, edx
jbe 0x4c63e2
xor ecx, ecx
mov edx, 0x68
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004cf9f2
add esp, 4
mov dword [esi + 0x18], eax
test eax, eax
je 0x4c63db
mov edx, dword [esi + 0x40]
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 0x4c63a6
cmp dword [esp + 0x14], ebp
jne 0x4c63a6
xor ebx, ebx
mov dword [esp + 0x18], 0
cmp dword [esi + 8], ebx
jbe 0x4c638f
xor ebp, ebp
mov eax, dword [esi + 0x18]
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 + 0x20]
call fcn.004c49d0
cmp byte [eax + 8], 0
je 0x4c6330
inc dword [esp + 0x18]
jmp 0x4c637e
mov ecx, dword [esi + 0x18]
mov edx, dword [ecx + ebp]
push 0x5fb250
push edx
push 0x5fb23c
push str._DBE::CDBase_struct_DBE::_DBASE_struct_DBE::_ITEMDISPLAY_::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, 0x68
cmp ebx, dword [esi + 8]
jb 0x4c6302
mov ebp, dword [esp + 0x24]
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x20]
cmp eax, dword [esi + 8]
jne 0x4c6414
mov dword [esp + 0x1c], 1
jmp 0x4c6414
push 0x5fb250
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push 0x5fb1e0
push str._DBE::CDBase_struct_DBE::_DBASE_struct_DBE::_ITEMDISPLAY_::Init_
push 0x66ded8
call fcn.00432d30
add esp, 8
push eax
call fcn.00432d30
add esp, 8
mov ecx, eax
call fcn.004c2b10
jmp 0x4c63f9
push 0x5fb1c8
jmp 0x4c63e7
push 0x5fb1a0
push str._DBE::CDBase_struct_DBE::_DBASE_struct_DBE::_ITEMDISPLAY_::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 0x4c65eb
lea ecx, [eax + ebp + 0x14]
cmp ebx, ecx
jb 0x4c65eb
push eax
call fcn.004cf9f2
add esp, 4
mov dword [esi + 0x1c], eax
test eax, eax
je 0x4c64a4
mov ecx, dword [esi + 0x14]
push 0
lea edx, [esp + 0x18]
push edx
mov edx, dword [esi + 0x40]
push ecx
push eax
push edx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x4c646f
mov eax, dword [esp + 0x14]
cmp eax, dword [esi + 0x14]
jne 0x4c646f
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4c65eb
jmp 0x4c65ed
push 0x5fb250
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push 0x5fb1e0
push str._DBE::CDBase_struct_DBE::_DBASE_struct_DBE::_ITEMDISPLAY_::Init_
push 0x66ded8
call fcn.00432d30
add esp, 8
push eax
call fcn.00432d30
add esp, 8
mov ecx, eax
call fcn.004c2b10
jmp 0x4c651c
push 0x5fb184
jmp 0x4c650a
push 0x5fb170
jmp 0x4c650a
push 0x5fb250
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push 0x5fb15c
push str._DBE::CDBase_struct_DBE::_DBASE_struct_DBE::_ITEMDISPLAY_::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 0x4c65eb
push 0x5fb138
push str._DBE::CDBase_struct_DBE::_DBASE_struct_DBE::_ITEMDISPLAY_::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 0x4c65eb
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 0x4c6572
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::_DBASE_struct_DBE::_ITEMDISPLAY_::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 0x4c65eb
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