Function at 0x4c6930
Capabilities:
Check if file exists
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a58a5
mov eax, dword fs:[0]
push eax
sub esp, 0x168
mov eax, dword [0x63434c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xfc], eax
lea eax, [ebp - 0x58]
push eax
call fcn.0051a820
add esp, 4
push 0x1d
push 0x5c6ef4
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.0043ee20
push eax
lea ecx, [ebp - 0x40]
call fcn.0043f9e0
mov edx, dword [ebp - 0x44]
mov byte [ebp - 4], 2
cmp edx, 8
jb 0x4c69cf
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4c69c5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4c714e
push edx
push ecx
call fcn.00558004
add esp, 8
mov byte [ebp - 4], 3
call fcn.004291f0
mov ecx, eax
test ecx, ecx
je 0x4c7153
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0xec], esi
cmp dword [ebp - 0x2c], 8
lea edi, [ebp - 0x40]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov byte [ebp - 4], 4
jb 0x4c6a0e
mov edi, dword [ebp - 0x40]
test edi, edi
je 0x4c6afa
cmp word [edi], 0
je 0x4c6afa
push edi
call ebx
test eax, eax
je 0x4c6afa
push 0
push 0x80
push 3
push 0
push 3
push 0x80000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4c6af4
lea ecx, [ebp - 0xec]
mov byte [ebp - 0xe5], 0
call fcn.00437dc0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0xf8], eax
test eax, eax
je 0x4c6ada
lea ecx, [eax + 1]
mov dword [ebp - 0xf4], 0
push ecx
lea ecx, [ebp - 0xec]
mov esi, eax
call fcn.0044f3e0
mov dword [ebp - 0xf0], eax
mov edi, eax
nop
push 0
lea eax, [ebp - 0xf4]
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4c6ada
mov eax, dword [ebp - 0xf4]
test eax, eax
je 0x4c6ada
add edi, eax
sub esi, eax
jne 0x4c6a90
mov eax, dword [ebp - 0xf8]
mov ecx, dword [ebp - 0xf0]
push 0xffffffffffffffff
mov byte [ecx + eax], 0
lea ecx, [ebp - 0xec]
call fcn.00458960
mov byte [ebp - 0xe5], 1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 0xe5], 0
jne 0x4c6c33
mov esi, dword [ebp - 0xec]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp - 0x58]
push eax
call fcn.0051a820
add esp, 4
push 0x1e
push str.office6cfgonlineconfig.data
mov ecx, eax
mov byte [ebp - 4], 5
call fcn.0043ee20
lea ecx, [ebp - 0x40]
cmp ecx, eax
je 0x4c6b34
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x4c6b2a
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0x40]
call fcn.0042e2d0
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 4
call fcn.0042aad0
cmp dword [ebp - 0x2c], 8
lea edi, [ebp - 0x40]
jb 0x4c6b54
mov edi, dword [ebp - 0x40]
test edi, edi
je 0x4c70de
cmp word [edi], 0
je 0x4c70de
push edi
call ebx
test eax, eax
je 0x4c70de
push 0
push 0x80
push 3
push 0
push 3
push 0x80000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4c70de
lea ecx, [ebp - 0xec]
mov byte [ebp - 0xe5], 0
call fcn.00437dc0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0xf0], eax
test eax, eax
je 0x4c6c1f
lea ecx, [eax + 1]
mov dword [ebp - 0xf4], 0
push ecx
lea ecx, [ebp - 0xec]
mov esi, eax
call fcn.0044f3e0
mov dword [ebp - 0xf8], eax
mov edi, eax
push 0
lea eax, [ebp - 0xf4]
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4c6c1f
mov eax, dword [ebp - 0xf4]
test eax, eax
je 0x4c6c1f
add edi, eax
sub esi, eax
jne 0x4c6bd5
mov eax, dword [ebp - 0xf0]
mov ecx, dword [ebp - 0xf8]
push 0xffffffffffffffff
mov byte [ecx + eax], 0
lea ecx, [ebp - 0xec]
call fcn.00458960
mov byte [ebp - 0xe5], 1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 0xe5], 0
je 0x4c70d8
push 0
lea ecx, [ebp - 0x12c]
call fcn.005021d0
lea ecx, [ebp - 0xe4]
mov byte [ebp - 4], 6
call fcn.00507a40
mov esi, dword [ebp - 0xec]
mov ecx, esi
mov dword [ebp - 0x28], 0
mov byte [ebp - 4], 7
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
lea edx, [ecx + 1]
mov byte [ebp - 0x28], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4c6c77
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.004385d0
push 1
lea eax, [ebp - 0x12c]
mov byte [ebp - 4], 8
push eax
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0xe4]
call fcn.0050d800
mov edx, dword [ebp - 0x14]
test al, al
mov byte [ebp - 4], 7
sete bl
cmp edx, 0x10
jb 0x4c6ce3
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4c6cd9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4c715d
push edx
push ecx
call fcn.00558004
add esp, 8
test bl, bl
jne 0x4c70be
lea ecx, [ebp - 0x12c]
call fcn.00504720
test al, al
jne 0x4c70be
lea ecx, [ebp - 0x12c]
call fcn.00504730
test al, al
je 0x4c70be
push str.params
lea ecx, [ebp - 0x12c]
call fcn.005046f0
test al, al
je 0x4c70be
push str.params
lea ecx, [ebp - 0x12c]
call fcn.00502cf0
push eax
lea ecx, [ebp - 0x15c]
call fcn.00501f70
lea ecx, [ebp - 0x15c]
mov byte [ebp - 4], 9
call fcn.00504720
test al, al
jne 0x4c70af
lea ecx, [ebp - 0x15c]
call fcn.005046c0
test al, al
je 0x4c70af
lea ecx, [ebp - 0x15c]
call fcn.00505330
mov dword [ebp - 0xf0], eax
test eax, eax
jle 0x4c70af
push 0
lea ecx, [ebp - 0x174]
call fcn.005021d0
mov byte [ebp - 4], 0xa
xor ebx, ebx
jmp 0x4c6da0
push ebx
lea ecx, [ebp - 0x15c]
call fcn.005029c0
push eax
lea ecx, [ebp - 0x114]
call fcn.00501f70
lea ecx, [ebp - 0x114]
mov byte [ebp - 4], 0xb
call fcn.00504720
test al, al
jne 0x4c6e84
lea ecx, [ebp - 0x114]
call fcn.00504730
test al, al
je 0x4c6e84
push str.funcName
lea ecx, [ebp - 0x114]
call fcn.00502cf0
push eax
lea ecx, [ebp - 0x58]
call fcn.00501f70
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0xc
push eax
lea ecx, [ebp - 0x58]
call fcn.00503ae0
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
mov edi, dword [ebp - 0x28]
push 0x10
push str.Uninstall_Reason
push dword [ebp - 0x18]
cmovae eax, edi
mov byte [ebp - 4], 0xd
push eax
call fcn.004c4640
add esp, 0x10
test eax, eax
je 0x4c6ea2
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 0xc
cmp eax, 0x10
jb 0x4c6e6a
lea ecx, [eax + 1]
mov eax, edi
cmp ecx, 0x1000
jb 0x4c6e60
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4c714e
push ecx
push edi
call fcn.00558004
add esp, 8
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.00502700
lea ecx, [ebp - 0x114]
mov byte [ebp - 4], 0xa
call fcn.00502700
inc ebx
cmp ebx, dword [ebp - 0xf0]
jl 0x4c6da0
jmp 0x4c6ed3
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x174]
call fcn.005027a0
lea ecx, [ebp - 0x28]
call fcn.00437be0
lea ecx, [ebp - 0x58]
call fcn.00502700
lea ecx, [ebp - 0x114]
mov byte [ebp - 4], 0xa
call fcn.00502700
push str.extras
lea ecx, [ebp - 0x174]
call fcn.005046f0
test al, al
jne 0x4c6f04
lea ecx, [ebp - 0x174]
xor bl, bl
call fcn.00502700
lea ecx, [ebp - 0x15c]
call fcn.00502700
jmp 0x4c70c0
push str.extras
lea ecx, [ebp - 0x174]
call fcn.00502cf0
push eax
lea ecx, [ebp - 0x144]
call fcn.00501f70
lea ecx, [ebp - 0x144]
mov byte [ebp - 4], 0xe
call fcn.00504720
test al, al
jne 0x4c708a
lea ecx, [ebp - 0x144]
call fcn.005046c0
test al, al
je 0x4c708a
lea ecx, [ebp - 0x144]
call fcn.00505330
mov dword [ebp - 0xf0], eax
test eax, eax
jle 0x4c708a
xor ebx, ebx
jmp 0x4c6f70
push ebx
lea ecx, [ebp - 0x144]
call fcn.00502a60
push eax
lea ecx, [ebp - 0x114]
call fcn.00501f70
push 0x5c6fa0
lea ecx, [ebp - 0x114]
mov byte [ebp - 4], 0xf
call fcn.00502cf0
lea ecx, [ebp - 0x28]
push ecx
mov ecx, eax
call fcn.00503ae0
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
mov edi, dword [ebp - 0x28]
push 0xf
push str.UninstallReason
push dword [ebp - 0x18]
cmovae eax, edi
mov byte [ebp - 4], 0x10
push eax
call fcn.004c4640
add esp, 0x10
test eax, eax
je 0x4c7044
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 0xf
cmp eax, 0x10
jb 0x4c7006
lea ecx, [eax + 1]
mov eax, edi
cmp ecx, 0x1000
jb 0x4c6ffc
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4c714e
push ecx
push edi
call fcn.00558004
add esp, 8
lea ecx, [ebp - 0x114]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov byte [ebp - 4], 0xe
call fcn.00502700
inc ebx
cmp ebx, dword [ebp - 0xf0]
jl 0x4c6f70
mov edi, dword [ebp - 0xfc]
cmp dword [edi + 0x10], 0
je 0x4c708a
mov bl, 1
jmp 0x4c708c
push str.value
lea ecx, [ebp - 0x114]
call fcn.00502cf0
lea ecx, [ebp - 0x70]
push ecx
mov ecx, eax
call fcn.00503ae0
mov edi, dword [ebp - 0xfc]
mov ecx, edi
push eax
call fcn.004c5020
lea ecx, [ebp - 0x70]
call fcn.00437be0
lea ecx, [ebp - 0x28]
call fcn.00437be0
lea ecx, [ebp - 0x114]
call fcn.00502700
jmp 0x4c703a
xor bl, bl
lea ecx, [ebp - 0x144]
call fcn.00502700
lea ecx, [ebp - 0x174]
call fcn.00502700
lea ecx, [ebp - 0x15c]
call fcn.00502700
jmp 0x4c70c0
lea ecx, [ebp - 0x15c]
xor bl, bl
call fcn.00502700
jmp 0x4c70c0
xor bl, bl
lea ecx, [ebp - 0xe4]
call fcn.004c4db0
lea ecx, [ebp - 0x12c]
call fcn.00502700
jmp 0x4c70e0
mov esi, dword [ebp - 0xec]
xor bl, bl
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4c70f8
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x4c712e
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4c7124
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4c7162
push edx
push ecx
call fcn.00558004
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00557e89
mov esp, ebp
pop ebp
ret 4
call fcn.00566a14
push 0x80004005
call fcn.00429b00
call fcn.00566a14
call fcn.00566a14
int3