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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a0010
mov eax, dword fs:[0]
push eax
sub esp, 0x168
mov eax, dword [0x62819c]
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.00515290
add esp, 4
push 0x1d
push 0x5c1a08
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.0043eb30
push eax
lea ecx, [ebp - 0x40]
call fcn.0043e510
mov edx, dword [ebp - 0x5c]
mov byte [ebp - 4], 2
cmp edx, 8
jb 0x4bda2f
mov ecx, dword [ebp - 0x70]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4bda25
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4be1b2
push edx
push ecx
call fcn.00546044
add esp, 8
xor eax, eax
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
call fcn.00428a90
mov ecx, eax
test ecx, ecx
je 0x4be1b7
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 0x4bdb6a
cmp word [edi], 0
je 0x4bdb6a
push edi
call ebx
test eax, eax
je 0x4bdb6a
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 0x4bdb64
lea ecx, [ebp - 0xec]
mov byte [ebp - 0xe5], 0
call fcn.00437620
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0xf8], eax
test eax, eax
je 0x4bdb4a
lea ecx, [eax + 1]
mov dword [ebp - 0xf4], 0
push ecx
lea ecx, [ebp - 0xec]
mov esi, eax
call fcn.0044c270
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 0x4bdb4a
mov eax, dword [ebp - 0xf4]
test eax, eax
je 0x4bdb4a
add edi, eax
sub esi, eax
jne 0x4bdb00
mov eax, dword [ebp - 0xf8]
mov ecx, dword [ebp - 0xf0]
push 0xffffffffffffffff
mov byte [ecx + eax], 0
lea ecx, [ebp - 0xec]
call fcn.00455650
mov byte [ebp - 0xe5], 1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 0xe5], 0
jne 0x4bdca3
mov esi, dword [ebp - 0xec]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp - 0x58]
push eax
call fcn.00515290
add esp, 4
push 0x1e
push str.office6cfgonlineconfig.data
mov ecx, eax
mov byte [ebp - 4], 4
call fcn.0043eb30
lea ecx, [ebp - 0x40]
cmp ecx, eax
je 0x4bdba5
cmp dword [eax + 0x14], 8
mov ecx, eax
jb 0x4bdb99
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x40]
call fcn.0042daa0
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 3
call fcn.0042a1f0
cmp dword [ebp - 0x2c], 8
lea edi, [ebp - 0x40]
cmovae edi, dword [ebp - 0x40]
test edi, edi
je 0x4be13e
cmp word [edi], 0
je 0x4be13e
push edi
call ebx
test eax, eax
je 0x4be13e
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 0x4be13e
lea ecx, [ebp - 0xec]
mov byte [ebp - 0xe5], 0
call fcn.00437620
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0xf0], eax
test eax, eax
je 0x4bdc8f
lea ecx, [eax + 1]
mov dword [ebp - 0xf4], 0
push ecx
lea ecx, [ebp - 0xec]
mov esi, eax
call fcn.0044c270
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 0x4bdc8f
mov eax, dword [ebp - 0xf4]
test eax, eax
je 0x4bdc8f
add edi, eax
sub esi, eax
jne 0x4bdc45
mov eax, dword [ebp - 0xf0]
mov ecx, dword [ebp - 0xf8]
push 0xffffffffffffffff
mov byte [ecx + eax], 0
lea ecx, [ebp - 0xec]
call fcn.00455650
mov byte [ebp - 0xe5], 1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 0xe5], 0
je 0x4be138
push 0
lea ecx, [ebp - 0x12c]
call fcn.004f9cd0
lea ecx, [ebp - 0xe4]
mov byte [ebp - 4], 5
call fcn.004ff3c0
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 0x4bdce0
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.00437dd0
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.00504f40
mov edx, dword [ebp - 0x14]
test al, al
mov byte [ebp - 4], 6
sete bl
cmp edx, 0x10
jb 0x4bdd4c
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4bdd42
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4be1c1
push edx
push ecx
call fcn.00546044
add esp, 8
test bl, bl
jne 0x4be11e
lea ecx, [ebp - 0x12c]
call fcn.004fc3a0
test al, al
jne 0x4be11e
lea ecx, [ebp - 0x12c]
call fcn.004fc3b0
test al, al
je 0x4be11e
push str.params
lea ecx, [ebp - 0x12c]
call fcn.004fc370
test al, al
je 0x4be11e
push str.params
lea ecx, [ebp - 0x12c]
call fcn.004fa8a0
push eax
lea ecx, [ebp - 0x15c]
call fcn.004f9a70
lea ecx, [ebp - 0x15c]
mov byte [ebp - 4], 8
call fcn.004fc3a0
test al, al
jne 0x4be10f
lea ecx, [ebp - 0x15c]
call fcn.004fc340
test al, al
je 0x4be10f
lea ecx, [ebp - 0x15c]
call fcn.004fd000
mov dword [ebp - 0xf0], eax
test eax, eax
jle 0x4be10f
push 0
lea ecx, [ebp - 0x174]
call fcn.004f9cd0
mov byte [ebp - 4], 9
xor ebx, ebx
push ebx
lea ecx, [ebp - 0x15c]
call fcn.004fa520
push eax
lea ecx, [ebp - 0x114]
call fcn.004f9a70
lea ecx, [ebp - 0x114]
mov byte [ebp - 4], 0xa
call fcn.004fc3a0
test al, al
jne 0x4bdee8
lea ecx, [ebp - 0x114]
call fcn.004fc3b0
test al, al
je 0x4bdee8
push str.funcName
lea ecx, [ebp - 0x114]
call fcn.004fa8a0
push eax
lea ecx, [ebp - 0x58]
call fcn.004f9a70
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0xb
push eax
lea ecx, [ebp - 0x58]
call fcn.004fb770
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.004bb1d0
add esp, 0x10
test eax, eax
je 0x4bdf06
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 0xb
cmp eax, 0x10
jb 0x4bdece
lea ecx, [eax + 1]
mov eax, edi
cmp ecx, 0x1000
jb 0x4bdec4
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4be1b2
push ecx
push edi
call fcn.00546044
add esp, 8
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.004fa230
lea ecx, [ebp - 0x114]
mov byte [ebp - 4], 9
call fcn.004fa230
inc ebx
cmp ebx, dword [ebp - 0xf0]
jl 0x4bde04
jmp 0x4bdf37
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x174]
call fcn.004fa310
lea ecx, [ebp - 0x28]
call fcn.00437220
lea ecx, [ebp - 0x58]
call fcn.004fa230
lea ecx, [ebp - 0x114]
mov byte [ebp - 4], 9
call fcn.004fa230
push str.extras
lea ecx, [ebp - 0x174]
call fcn.004fc370
test al, al
jne 0x4bdf68
lea ecx, [ebp - 0x174]
xor bl, bl
call fcn.004fa230
lea ecx, [ebp - 0x15c]
call fcn.004fa230
jmp 0x4be120
push str.extras
lea ecx, [ebp - 0x174]
call fcn.004fa8a0
push eax
lea ecx, [ebp - 0x144]
call fcn.004f9a70
lea ecx, [ebp - 0x144]
mov byte [ebp - 4], 0xd
call fcn.004fc3a0
test al, al
jne 0x4be0ea
lea ecx, [ebp - 0x144]
call fcn.004fc340
test al, al
je 0x4be0ea
lea ecx, [ebp - 0x144]
call fcn.004fd000
mov dword [ebp - 0xf0], eax
test eax, eax
jle 0x4be0ea
xor ebx, ebx
lea esp, [esp]
push ebx
lea ecx, [ebp - 0x144]
call fcn.004fa5c0
push eax
lea ecx, [ebp - 0x114]
call fcn.004f9a70
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0xe
push eax
push 0x5c1ab4
lea ecx, [ebp - 0x114]
call fcn.004fa8a0
mov ecx, eax
call fcn.004fb770
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.004bb1d0
add esp, 0x10
test eax, eax
je 0x4be09c
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 0xe
cmp eax, 0x10
jb 0x4be066
lea ecx, [eax + 1]
mov eax, edi
cmp ecx, 0x1000
jb 0x4be05c
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4be1b2
push ecx
push edi
call fcn.00546044
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.004fa230
inc ebx
cmp ebx, dword [ebp - 0xf0]
jl 0x4bdfd0
mov edi, dword [ebp - 0xfc]
jmp 0x4be0e0
lea eax, [ebp - 0x58]
push eax
push str.value
lea ecx, [ebp - 0x114]
call fcn.004fa8a0
mov ecx, eax
call fcn.004fb770
mov edi, dword [ebp - 0xfc]
mov ecx, edi
push eax
call fcn.004bbcd0
lea ecx, [ebp - 0x58]
call fcn.00437220
lea ecx, [ebp - 0x28]
call fcn.00437220
lea ecx, [ebp - 0x114]
call fcn.004fa230
cmp dword [edi + 0x10], 0
je 0x4be0ea
mov bl, 1
jmp 0x4be0ec
xor bl, bl
lea ecx, [ebp - 0x144]
call fcn.004fa230
lea ecx, [ebp - 0x174]
call fcn.004fa230
lea ecx, [ebp - 0x15c]
call fcn.004fa230
jmp 0x4be120
lea ecx, [ebp - 0x15c]
xor bl, bl
call fcn.004fa230
jmp 0x4be120
xor bl, bl
lea ecx, [ebp - 0xe4]
call fcn.004bba40
lea ecx, [ebp - 0x12c]
call fcn.004fa230
jmp 0x4be140
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 0x4be15c
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x4be192
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4be188
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4be1c6
push edx
push ecx
call fcn.00546044
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.00545ec7
mov esp, ebp
pop ebp
ret 4
call fcn.00555394
push 0x80004005
call fcn.004293d0
call fcn.00555394
call fcn.00555394
int3