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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e5a5e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x40], ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], ebx
mov eax, 0x519774
mov byte [ebp - 4], 1
test eax, eax
je 0x4b6fa7
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.004cf470
mov edi, esp
push esi
push edi
push 0xffffffffffffffff
push 0x519774
push ebx
push ebx
mov word [edi], bx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x4b6c4c
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x4b6c3e
call esi
jmp 0x4b6c58
call esi
and eax, 0xffff
or eax, 0x80070000
jmp 0x4b6c58
push 7
push ebx
push edi
lea ecx, [ebp - 0x14]
call fcn.004b7a80
cmp eax, ebx
jl 0x4b6fa7
mov eax, dword [ebp - 0x14]
cmp eax, ebx
jne 0x4b6c74
push 0x80004003
call fcn.004cf728
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
push ebx
push eax
mov esi, eax
call dword [ecx + 0xfc]
cmp eax, ebx
jge 0x4b6c90
push 0x518788
push esi
push eax
call fcn.004cf736
mov edi, dword [ebp + 8]
mov word [ebp - 0x30], 8
push edi
call fcn.004cf7d5
cmp eax, ebx
mov dword [ebp - 0x28], eax
jne 0x4b6cb4
cmp edi, ebx
je 0x4b6cb4
push 0x8007000e
call fcn.004cf728
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 2
cmp eax, ebx
jne 0x4b6ccc
push 0x80004003
call fcn.004cf728
mov eax, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x30]
lea ecx, [ebp + 0xa]
push ecx
mov edx, dword [eax]
sub esp, 0x10
mov esi, eax
mov ecx, esp
push eax
mov dword [ecx], ebx
mov ebx, dword [ebp - 0x2c]
mov dword [ecx + 4], ebx
mov ebx, dword [ebp - 0x28]
mov dword [ecx + 8], ebx
mov ebx, dword [ebp - 0x24]
mov dword [ecx + 0xc], ebx
call dword [edx + 0xe8]
test eax, eax
jge 0x4b6d07
push 0x518788
push esi
push eax
call fcn.004cf736
cmp word [ebp + 0xa], 0
lea edx, [ebp - 0x30]
push edx
mov byte [ebp - 4], 1
sete bl
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
test eax, eax
jge 0x4b6d27
push eax
call fcn.004cf728
test bl, bl
je 0x4b6ed0
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
mov dword [ebp + 8], esi
cmp esi, 0xffffffff
mov byte [ebp - 4], 3
je 0x4b6fa7
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
je 0x4b6ec1
lea eax, [edi + 1]
push eax
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [ebp - 0x24], eax
test eax, eax
setne cl
mov byte [ebp - 0x28], cl
lea edx, [ebp - 0x3c]
push 0
push edx
push edi
mov bl, 4
push eax
push esi
mov byte [ebp - 4], bl
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4b6f30
mov eax, dword [ebp - 0x24]
lea ecx, [ebp - 0x28]
mov byte [eax + edi], 0
call fcn.004b7a60
push ecx
mov edi, eax
mov dword [ebp - 0x38], esp
mov esi, esp
push 0xc
call sub.MFC42.DLL_operatornew
mov ecx, eax
add esp, 4
mov dword [ebp - 0x34], ecx
test ecx, ecx
mov byte [ebp - 4], 5
je 0x4b6dd7
push edi
call fcn.00409380
jmp 0x4b6dd9
xor eax, eax
test eax, eax
mov byte [ebp - 4], bl
mov dword [esi], eax
jne 0x4b6dec
push 0x8007000e
call fcn.004cf728
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 6
call fcn.00447640
mov ecx, eax
mov byte [ebp - 4], bl
call fcn.004219b0
test ax, ax
jne 0x4b6eae
mov ecx, dword [ebp - 0x24]
xor edx, edx
mov al, byte [ecx]
test al, al
je 0x4b6e24
cmp al, 0x26
jne 0x4b6e21
test edx, edx
jne 0x4b6e21
mov byte [ecx], 1
inc ecx
jmp 0x4b6e10
lea ecx, [ebp - 0x28]
call fcn.004b7a60
push ecx
mov edi, eax
mov dword [ebp - 0x38], esp
mov esi, esp
push 0xc
call sub.MFC42.DLL_operatornew
mov ecx, eax
add esp, 4
mov dword [ebp - 0x34], ecx
test ecx, ecx
mov byte [ebp - 4], 7
je 0x4b6e53
push edi
call fcn.00409380
jmp 0x4b6e55
xor eax, eax
test eax, eax
mov byte [ebp - 4], bl
mov dword [esi], eax
jne 0x4b6e68
push 0x8007000e
call fcn.004cf728
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 8
call fcn.00447640
mov ecx, eax
mov byte [ebp - 4], bl
call fcn.004219b0
test ax, ax
jne 0x4b6eae
mov al, byte [ebp - 0x28]
test al, al
je 0x4b6e96
mov ecx, dword [ebp - 0x24]
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [ebp + 8]
cmp eax, 0xffffffff
je 0x4b6fa7
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4b6fa7
mov al, byte [ebp - 0x28]
test al, al
je 0x4b6ec1
mov edx, dword [ebp - 0x24]
push edx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [ebp + 8]
cmp eax, 0xffffffff
je 0x4b6ed0
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 9
test eax, eax
jne 0x4b6eec
push 0x80004003
call fcn.004cf728
lea ecx, [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x14]
call fcn.0043f770
mov edx, dword [eax]
lea ecx, [ebp - 0x18]
push edx
call fcn.00440850
lea ecx, [ebp + 8]
call fcn.00404a80
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x4b6f9f
lea eax, [ebp + 8]
push eax
call fcn.0040f290
mov ecx, dword [eax]
mov byte [ebp - 4], 0xa
test ecx, ecx
je 0x4b6f4c
call fcn.00405ec0
jmp 0x4b6f4e
mov al, byte [ebp - 0x28]
test al, al
je 0x4b6f43
mov eax, dword [ebp - 0x24]
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4b6fa7
xor eax, eax
push 0x523e40
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 9
setne bl
call fcn.00405de0
test bl, bl
jne 0x4b6f9f
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x4b6f80
push 0x80004003
call fcn.004cf728
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, dword [ebp - 0x18]
call fcn.004b7770
mov eax, dword [ebp - 0x1c]
mov byte [ebp - 4], 0xb
test eax, eax
jne 0x4b6fc7
lea ecx, [ebp - 0x1c]
call fcn.00404a80
lea ecx, [ebp - 0x18]
call fcn.00404a80
lea ecx, [ebp - 0x14]
call fcn.00404a80
xor eax, eax
mov ecx, dword [ebp - 0xc]
lea esp, [ebp - 0x4c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
xor edi, edi
test eax, eax
jne 0x4b6fda
push 0x80004003
call fcn.004cf728
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
lea ecx, [ebp - 0x24]
push ecx
push eax
mov esi, eax
call dword [edx + 0x20]
test eax, eax
jge 0x4b6ff6
push 0x518680
push esi
push eax
call fcn.004cf736
cmp edi, dword [ebp - 0x24]
jge 0x4b716c
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x4b7010
push 0x80004003
call fcn.004cf728
mov ecx, dword [ebp - 0x1c]
lea edx, [ebp - 0x34]
push edi
push edx
call fcn.0043f920
mov eax, dword [eax]
lea ecx, [ebp - 0x18]
push eax
call fcn.00440850
lea ecx, [ebp - 0x34]
call fcn.00404a80
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x4b7163
lea edx, [ebp - 0x3c]
push edx
call fcn.0040f290
mov ecx, dword [eax]
mov byte [ebp - 4], 0xc
test ecx, ecx
je 0x4b7055
call fcn.00405ec0
jmp 0x4b7057
xor eax, eax
push 0x523e38
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x4b70b4
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x4b7078
push 0x80004003
call fcn.004cf728
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x38]
push eax
call fcn.0040f290
mov ecx, dword [eax]
mov byte [ebp - 4], 0xd
test ecx, ecx
je 0x4b7095
call fcn.00405ec0
jmp 0x4b7097
xor eax, eax
push 0x523e30
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
lea ecx, [ebp - 0x38]
sete bl
call fcn.00405de0
test bl, bl
je 0x4b70b6
mov bl, 1
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0xb
call fcn.00405de0
test bl, bl
je 0x4b7163
mov ecx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x40]
push ecx
lea edx, [ebp - 0x20]
push 0x523e2c
push edx
mov ecx, esi
call fcn.004b71a0
mov eax, dword [ebp - 0x20]
mov byte [ebp - 4], 0xe
test eax, eax
je 0x4b7157
push eax
lea eax, [ebp + 8]
push 0x523e24
push eax
mov ecx, esi
call fcn.004b7380
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 0xf
test eax, eax
je 0x4b714f
mov eax, dword [eax]
test eax, eax
je 0x4b714f
push eax
call dword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
je 0x4b714f
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x4b7127
call fcn.00405ec0
jmp 0x4b7129
xor eax, eax
mov esi, eax
xor edx, edx
mov cl, byte [eax]
test cl, cl
je 0x4b7142
cmp cl, 1
jne 0x4b713f
test edx, edx
jne 0x4b713f
mov byte [eax], 0x26
inc eax
jmp 0x4b712d
mov ecx, dword [ebp + 0xc]
push esi
mov eax, dword [ecx + 8]
push eax
call sub.MFC42.DLL_CStringArray::SetAtGrow
lea ecx, [ebp + 8]
call fcn.00405de0
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0xb
call fcn.00404a80
mov eax, dword [ebp - 0x1c]
inc edi
jmp 0x4b6fc9
lea ecx, [ebp - 0x1c]
call fcn.00404a80
lea ecx, [ebp - 0x18]
call fcn.00404a80
lea ecx, [ebp - 0x14]
call fcn.00404a80
mov eax, 1
jmp 0x4b6fb1