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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59f990
mov eax, dword fs:[0]
push eax
sub esp, 0x168
mov eax, dword [0x61ce74]
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 - 0x70]
push eax
call fcn.004e2a90
add esp, 4
push 0x1d
push 0x5cc0b0
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.00439c70
push eax
lea ecx, [ebp - 0x40]
call fcn.00439650
mov edx, dword [ebp - 0x5c]
mov byte [ebp - 4], 2
cmp edx, 8
jb 0x4afc1f
mov ecx, dword [ebp - 0x70]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4afc15
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4b03a2
push edx
push ecx
call fcn.0053d0af
add esp, 8
xor eax, eax
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
call fcn.00421b80
mov ecx, eax
test ecx, ecx
je 0x4b03a7
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]
cmovae edi, dword [ebp - 0x40]
mov byte [ebp - 4], 3
test edi, edi
je 0x4afd5a
cmp word [edi], 0
je 0x4afd5a
push edi
call ebx
test eax, eax
je 0x4afd5a
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 0x4afd54
lea ecx, [ebp - 0xec]
mov byte [ebp - 0xe5], 0
call fcn.00432c40
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0xf8], eax
test eax, eax
je 0x4afd3a
lea ecx, [eax + 1]
mov dword [ebp - 0xf4], 0
push ecx
lea ecx, [ebp - 0xec]
mov esi, eax
call fcn.004481b0
mov dword [ebp - 0xf0], eax
mov edi, eax
mov edi, edi
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 0x4afd3a
mov eax, dword [ebp - 0xf4]
test eax, eax
je 0x4afd3a
add edi, eax
sub esi, eax
jne 0x4afcf0
mov eax, dword [ebp - 0xf8]
mov ecx, dword [ebp - 0xf0]
push 0xffffffffffffffff
mov byte [ecx + eax], 0
lea ecx, [ebp - 0xec]
call fcn.004514c0
mov byte [ebp - 0xe5], 1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 0xe5], 0
jne 0x4afe93
mov esi, dword [ebp - 0xec]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp - 0x58]
push eax
call fcn.004e2a90
add esp, 4
push 0x1e
push str.office6cfgonlineconfig.data
mov ecx, eax
mov byte [ebp - 4], 4
call fcn.00439c70
lea ecx, [ebp - 0x40]
cmp ecx, eax
je 0x4afd95
cmp dword [eax + 0x14], 8
mov ecx, eax
jb 0x4afd89
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x40]
call fcn.00439df0
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 3
call fcn.00430d50
cmp dword [ebp - 0x2c], 8
lea edi, [ebp - 0x40]
cmovae edi, dword [ebp - 0x40]
test edi, edi
je 0x4b032e
cmp word [edi], 0
je 0x4b032e
push edi
call ebx
test eax, eax
je 0x4b032e
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 0x4b032e
lea ecx, [ebp - 0xec]
mov byte [ebp - 0xe5], 0
call fcn.00432c40
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0xf0], eax
test eax, eax
je 0x4afe7f
lea ecx, [eax + 1]
mov dword [ebp - 0xf4], 0
push ecx
lea ecx, [ebp - 0xec]
mov esi, eax
call fcn.004481b0
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 0x4afe7f
mov eax, dword [ebp - 0xf4]
test eax, eax
je 0x4afe7f
add edi, eax
sub esi, eax
jne 0x4afe35
mov eax, dword [ebp - 0xf0]
mov ecx, dword [ebp - 0xf8]
push 0xffffffffffffffff
mov byte [ecx + eax], 0
lea ecx, [ebp - 0xec]
call fcn.004514c0
mov byte [ebp - 0xe5], 1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 0xe5], 0
je 0x4b0328
push 0
lea ecx, [ebp - 0x12c]
call fcn.004d08f0
lea ecx, [ebp - 0xe4]
mov byte [ebp - 4], 5
call fcn.004d6180
mov esi, dword [ebp - 0xec]
mov ecx, esi
mov byte [ebp - 4], 6
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4afed0
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.00431b40
push 1
lea eax, [ebp - 0x12c]
mov byte [ebp - 4], 7
push eax
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0xe4]
call fcn.004dbe70
mov edx, dword [ebp - 0x14]
test al, al
mov byte [ebp - 4], 6
sete bl
cmp edx, 0x10
jb 0x4aff3c
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4aff32
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4b03b1
push edx
push ecx
call fcn.0053d0af
add esp, 8
test bl, bl
jne 0x4b030e
lea ecx, [ebp - 0x12c]
call fcn.004d2f10
test al, al
jne 0x4b030e
lea ecx, [ebp - 0x12c]
call fcn.004d2f20
test al, al
je 0x4b030e
push str.params
lea ecx, [ebp - 0x12c]
call fcn.004d2ee0
test al, al
je 0x4b030e
push str.params
lea ecx, [ebp - 0x12c]
call fcn.004d1470
push eax
lea ecx, [ebp - 0x15c]
call fcn.004d0690
lea ecx, [ebp - 0x15c]
mov byte [ebp - 4], 8
call fcn.004d2f10
test al, al
jne 0x4b02ff
lea ecx, [ebp - 0x15c]
call fcn.004d2eb0
test al, al
je 0x4b02ff
lea ecx, [ebp - 0x15c]
call fcn.004d3b30
mov dword [ebp - 0xf0], eax
test eax, eax
jle 0x4b02ff
push 0
lea ecx, [ebp - 0x174]
call fcn.004d08f0
mov byte [ebp - 4], 9
xor ebx, ebx
push ebx
lea ecx, [ebp - 0x15c]
call fcn.004d10f0
push eax
lea ecx, [ebp - 0x114]
call fcn.004d0690
lea ecx, [ebp - 0x114]
mov byte [ebp - 4], 0xa
call fcn.004d2f10
test al, al
jne 0x4b00d8
lea ecx, [ebp - 0x114]
call fcn.004d2f20
test al, al
je 0x4b00d8
push str.funcName
lea ecx, [ebp - 0x114]
call fcn.004d1470
push eax
lea ecx, [ebp - 0x58]
call fcn.004d0690
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0xb
push eax
lea ecx, [ebp - 0x58]
call fcn.004d22e0
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], 0xc
push eax
call fcn.004ad3f0
add esp, 0x10
test eax, eax
je 0x4b00f6
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 0xb
cmp eax, 0x10
jb 0x4b00be
lea ecx, [eax + 1]
mov eax, edi
cmp ecx, 0x1000
jb 0x4b00b4
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4b03a2
push ecx
push edi
call fcn.0053d0af
add esp, 8
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.004d0e00
lea ecx, [ebp - 0x114]
mov byte [ebp - 4], 9
call fcn.004d0e00
inc ebx
cmp ebx, dword [ebp - 0xf0]
jl 0x4afff4
jmp 0x4b0127
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x174]
call fcn.004d0ee0
lea ecx, [ebp - 0x28]
call fcn.00430d00
lea ecx, [ebp - 0x58]
call fcn.004d0e00
lea ecx, [ebp - 0x114]
mov byte [ebp - 4], 9
call fcn.004d0e00
push str.extras
lea ecx, [ebp - 0x174]
call fcn.004d2ee0
test al, al
jne 0x4b0158
lea ecx, [ebp - 0x174]
xor bl, bl
call fcn.004d0e00
lea ecx, [ebp - 0x15c]
call fcn.004d0e00
jmp 0x4b0310
push str.extras
lea ecx, [ebp - 0x174]
call fcn.004d1470
push eax
lea ecx, [ebp - 0x144]
call fcn.004d0690
lea ecx, [ebp - 0x144]
mov byte [ebp - 4], 0xd
call fcn.004d2f10
test al, al
jne 0x4b02da
lea ecx, [ebp - 0x144]
call fcn.004d2eb0
test al, al
je 0x4b02da
lea ecx, [ebp - 0x144]
call fcn.004d3b30
mov dword [ebp - 0xf0], eax
test eax, eax
jle 0x4b02da
xor ebx, ebx
lea esp, [esp]
push ebx
lea ecx, [ebp - 0x144]
call fcn.004d1190
push eax
lea ecx, [ebp - 0x114]
call fcn.004d0690
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0xe
push eax
push 0x5cc15c
lea ecx, [ebp - 0x114]
call fcn.004d1470
mov ecx, eax
call fcn.004d22e0
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], 0xf
push eax
call fcn.004ad3f0
add esp, 0x10
test eax, eax
je 0x4b028c
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 0xe
cmp eax, 0x10
jb 0x4b0256
lea ecx, [eax + 1]
mov eax, edi
cmp ecx, 0x1000
jb 0x4b024c
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4b03a2
push ecx
push edi
call fcn.0053d0af
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], 0xd
call fcn.004d0e00
inc ebx
cmp ebx, dword [ebp - 0xf0]
jl 0x4b01c0
mov edi, dword [ebp - 0xfc]
jmp 0x4b02d0
lea eax, [ebp - 0x58]
push eax
push str.value
lea ecx, [ebp - 0x114]
call fcn.004d1470
mov ecx, eax
call fcn.004d22e0
mov edi, dword [ebp - 0xfc]
mov ecx, edi
push eax
call fcn.004adef0
lea ecx, [ebp - 0x58]
call fcn.00430d00
lea ecx, [ebp - 0x28]
call fcn.00430d00
lea ecx, [ebp - 0x114]
call fcn.004d0e00
cmp dword [edi + 0x10], 0
je 0x4b02da
mov bl, 1
jmp 0x4b02dc
xor bl, bl
lea ecx, [ebp - 0x144]
call fcn.004d0e00
lea ecx, [ebp - 0x174]
call fcn.004d0e00
lea ecx, [ebp - 0x15c]
call fcn.004d0e00
jmp 0x4b0310
lea ecx, [ebp - 0x15c]
xor bl, bl
call fcn.004d0e00
jmp 0x4b0310
xor bl, bl
lea ecx, [ebp - 0xe4]
call fcn.004adc60
lea ecx, [ebp - 0x12c]
call fcn.004d0e00
jmp 0x4b0330
mov esi, dword [ebp - 0xec]
xor bl, bl
mov byte [ebp - 4], 2
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4b034c
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x4b0382
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4b0378
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4b03b6
push edx
push ecx
call fcn.0053d0af
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.0053d079
mov esp, ebp
pop ebp
ret 4
call fcn.0054b0c3
push 0x80004005
call fcn.00425f50
call fcn.0054b0c3
call fcn.0054b0c3
int3