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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a9e75
mov eax, dword fs:[0]
push eax
sub esp, 0x168
mov eax, dword [0x639354]
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.0051b7c0
add esp, 4
push 0x1d
push 0x5cbf2c
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.0043ec10
push eax
lea ecx, [ebp - 0x40]
call fcn.0043f520
mov edx, dword [ebp - 0x44]
mov byte [ebp - 4], 2
cmp edx, 8
jb 0x4c746f
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4c7465
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4c7bee
push edx
push ecx
call fcn.0055c524
add esp, 8
mov byte [ebp - 4], 3
call fcn.00429250
mov ecx, eax
test ecx, ecx
je 0x4c7bf3
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 0x4c74ae
mov edi, dword [ebp - 0x40]
test edi, edi
je 0x4c759a
cmp word [edi], 0
je 0x4c759a
push edi
call ebx
test eax, eax
je 0x4c759a
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 0x4c7594
lea ecx, [ebp - 0xec]
mov byte [ebp - 0xe5], 0
call fcn.00437e20
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0xf8], eax
test eax, eax
je 0x4c757a
lea ecx, [eax + 1]
mov dword [ebp - 0xf4], 0
push ecx
lea ecx, [ebp - 0xec]
mov esi, eax
call fcn.0044f070
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 0x4c757a
mov eax, dword [ebp - 0xf4]
test eax, eax
je 0x4c757a
add edi, eax
sub esi, eax
jne 0x4c7530
mov eax, dword [ebp - 0xf8]
mov ecx, dword [ebp - 0xf0]
push 0xffffffffffffffff
mov byte [ecx + eax], 0
lea ecx, [ebp - 0xec]
call fcn.004585c0
mov byte [ebp - 0xe5], 1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 0xe5], 0
jne 0x4c76d3
mov esi, dword [ebp - 0xec]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp - 0x58]
push eax
call fcn.0051b7c0
add esp, 4
push 0x1e
push str.office6cfgonlineconfig.data
mov ecx, eax
mov byte [ebp - 4], 5
call fcn.0043ec10
lea ecx, [ebp - 0x40]
cmp ecx, eax
je 0x4c75d4
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x4c75ca
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0x40]
call fcn.0042e330
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 4
call fcn.0042ab30
cmp dword [ebp - 0x2c], 8
lea edi, [ebp - 0x40]
jb 0x4c75f4
mov edi, dword [ebp - 0x40]
test edi, edi
je 0x4c7b7e
cmp word [edi], 0
je 0x4c7b7e
push edi
call ebx
test eax, eax
je 0x4c7b7e
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 0x4c7b7e
lea ecx, [ebp - 0xec]
mov byte [ebp - 0xe5], 0
call fcn.00437e20
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0xf0], eax
test eax, eax
je 0x4c76bf
lea ecx, [eax + 1]
mov dword [ebp - 0xf4], 0
push ecx
lea ecx, [ebp - 0xec]
mov esi, eax
call fcn.0044f070
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 0x4c76bf
mov eax, dword [ebp - 0xf4]
test eax, eax
je 0x4c76bf
add edi, eax
sub esi, eax
jne 0x4c7675
mov eax, dword [ebp - 0xf0]
mov ecx, dword [ebp - 0xf8]
push 0xffffffffffffffff
mov byte [ecx + eax], 0
lea ecx, [ebp - 0xec]
call fcn.004585c0
mov byte [ebp - 0xe5], 1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 0xe5], 0
je 0x4c7b78
push 0
lea ecx, [ebp - 0x12c]
call fcn.00502de0
lea ecx, [ebp - 0xe4]
mov byte [ebp - 4], 6
call fcn.00508960
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 0x4c7717
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.00438630
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.0050e720
mov edx, dword [ebp - 0x14]
test al, al
mov byte [ebp - 4], 7
sete bl
cmp edx, 0x10
jb 0x4c7783
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4c7779
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4c7bfd
push edx
push ecx
call fcn.0055c524
add esp, 8
test bl, bl
jne 0x4c7b5e
lea ecx, [ebp - 0x12c]
call fcn.00505330
test al, al
jne 0x4c7b5e
lea ecx, [ebp - 0x12c]
call fcn.00505340
test al, al
je 0x4c7b5e
push str.params
lea ecx, [ebp - 0x12c]
call fcn.00505300
test al, al
je 0x4c7b5e
push str.params
lea ecx, [ebp - 0x12c]
call fcn.00503900
push eax
lea ecx, [ebp - 0x15c]
call fcn.00502b80
lea ecx, [ebp - 0x15c]
mov byte [ebp - 4], 9
call fcn.00505330
test al, al
jne 0x4c7b4f
lea ecx, [ebp - 0x15c]
call fcn.005052d0
test al, al
je 0x4c7b4f
lea ecx, [ebp - 0x15c]
call fcn.00505f40
mov dword [ebp - 0xf0], eax
test eax, eax
jle 0x4c7b4f
push 0
lea ecx, [ebp - 0x174]
call fcn.00502de0
mov byte [ebp - 4], 0xa
xor ebx, ebx
jmp 0x4c7840
push ebx
lea ecx, [ebp - 0x15c]
call fcn.005035d0
push eax
lea ecx, [ebp - 0x114]
call fcn.00502b80
lea ecx, [ebp - 0x114]
mov byte [ebp - 4], 0xb
call fcn.00505330
test al, al
jne 0x4c7924
lea ecx, [ebp - 0x114]
call fcn.00505340
test al, al
je 0x4c7924
push str.funcName
lea ecx, [ebp - 0x114]
call fcn.00503900
push eax
lea ecx, [ebp - 0x58]
call fcn.00502b80
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0xc
push eax
lea ecx, [ebp - 0x58]
call fcn.005046f0
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.004c50f0
add esp, 0x10
test eax, eax
je 0x4c7942
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 0xc
cmp eax, 0x10
jb 0x4c790a
lea ecx, [eax + 1]
mov eax, edi
cmp ecx, 0x1000
jb 0x4c7900
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4c7bee
push ecx
push edi
call fcn.0055c524
add esp, 8
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.00503310
lea ecx, [ebp - 0x114]
mov byte [ebp - 4], 0xa
call fcn.00503310
inc ebx
cmp ebx, dword [ebp - 0xf0]
jl 0x4c7840
jmp 0x4c7973
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x174]
call fcn.005033b0
lea ecx, [ebp - 0x28]
call fcn.00437c40
lea ecx, [ebp - 0x58]
call fcn.00503310
lea ecx, [ebp - 0x114]
mov byte [ebp - 4], 0xa
call fcn.00503310
push str.extras
lea ecx, [ebp - 0x174]
call fcn.00505300
test al, al
jne 0x4c79a4
lea ecx, [ebp - 0x174]
xor bl, bl
call fcn.00503310
lea ecx, [ebp - 0x15c]
call fcn.00503310
jmp 0x4c7b60
push str.extras
lea ecx, [ebp - 0x174]
call fcn.00503900
push eax
lea ecx, [ebp - 0x144]
call fcn.00502b80
lea ecx, [ebp - 0x144]
mov byte [ebp - 4], 0xe
call fcn.00505330
test al, al
jne 0x4c7b2a
lea ecx, [ebp - 0x144]
call fcn.005052d0
test al, al
je 0x4c7b2a
lea ecx, [ebp - 0x144]
call fcn.00505f40
mov dword [ebp - 0xf0], eax
test eax, eax
jle 0x4c7b2a
xor ebx, ebx
jmp 0x4c7a10
push ebx
lea ecx, [ebp - 0x144]
call fcn.00503670
push eax
lea ecx, [ebp - 0x114]
call fcn.00502b80
push 0x5cbfd8
lea ecx, [ebp - 0x114]
mov byte [ebp - 4], 0xf
call fcn.00503900
lea ecx, [ebp - 0x28]
push ecx
mov ecx, eax
call fcn.005046f0
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.004c50f0
add esp, 0x10
test eax, eax
je 0x4c7ae4
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 0xf
cmp eax, 0x10
jb 0x4c7aa6
lea ecx, [eax + 1]
mov eax, edi
cmp ecx, 0x1000
jb 0x4c7a9c
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4c7bee
push ecx
push edi
call fcn.0055c524
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.00503310
inc ebx
cmp ebx, dword [ebp - 0xf0]
jl 0x4c7a10
mov edi, dword [ebp - 0xfc]
cmp dword [edi + 0x10], 0
je 0x4c7b2a
mov bl, 1
jmp 0x4c7b2c
push str.value
lea ecx, [ebp - 0x114]
call fcn.00503900
lea ecx, [ebp - 0x70]
push ecx
mov ecx, eax
call fcn.005046f0
mov edi, dword [ebp - 0xfc]
mov ecx, edi
push eax
call fcn.004c5ad0
lea ecx, [ebp - 0x70]
call fcn.00437c40
lea ecx, [ebp - 0x28]
call fcn.00437c40
lea ecx, [ebp - 0x114]
call fcn.00503310
jmp 0x4c7ada
xor bl, bl
lea ecx, [ebp - 0x144]
call fcn.00503310
lea ecx, [ebp - 0x174]
call fcn.00503310
lea ecx, [ebp - 0x15c]
call fcn.00503310
jmp 0x4c7b60
lea ecx, [ebp - 0x15c]
xor bl, bl
call fcn.00503310
jmp 0x4c7b60
xor bl, bl
lea ecx, [ebp - 0xe4]
call fcn.004c5860
lea ecx, [ebp - 0x12c]
call fcn.00503310
jmp 0x4c7b80
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 0x4c7b98
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x4c7bce
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4c7bc4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4c7c02
push edx
push ecx
call fcn.0055c524
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.0055c3a9
mov esp, ebp
pop ebp
ret 4
call fcn.0056af64
push 0x80004005
call fcn.00429b60
call fcn.0056af64
call fcn.0056af64
int3