Function at 0x46cca0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53a21e
mov eax, dword fs:[0]
push eax
sub esp, 0x938
mov eax, dword [0x5954a0]
xor eax, ebp
mov dword [ebp - 0x2c], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x910], ecx
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], 3
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 4], 0
push 0x5489a0
call fcn.0047c040
add esp, 4
xor eax, eax
jne 0x46cd01
xor ecx, ecx
jne 0x46cd01
mov dword [ebp - 0x840], 0
lea edx, [ebp - 0x840]
push edx
push 0x2001f
push 0
push str.SOFTWAREMicrosoftOffice12.0MOC
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x844], eax
cmp dword [ebp - 0x844], 0
jne 0x46cd65
lea ecx, [ebp - 0x28]
call fcn.0046cc50
mov dword [ebp - 0x844], eax
mov eax, dword [ebp - 0x840]
mov dword [ebp - 0x28], eax
mov ecx, 0x2001f
and ecx, 0x300
mov dword [ebp - 0x24], ecx
cmp dword [ebp - 0x844], 0
jne 0x46d6b0
push 0x548948
call fcn.0047c040
add esp, 4
mov dword [ebp - 0x834], 0x400
call fcn.004c02e6
push eax
lea ecx, [ebp - 0x838]
call fcn.004514d0
mov byte [ebp - 4], 1
mov edx, str.C:Program_FilesMicrosoft_OfficeOffice12_
test edx, edx
jne 0x46cdb3
mov dword [ebp - 0x848], 0
jmp 0x46cdc6
push str.C:Program_FilesMicrosoft_OfficeOffice12_
call fcn.004f810a
add esp, 4
mov dword [ebp - 0x848], eax
mov eax, dword [ebp - 0x848]
push eax
push str.C:Program_FilesMicrosoft_OfficeOffice12_
lea ecx, [ebp - 0x838]
call fcn.0044fb50
push str.OFFICE12
push str.OFFICE11
lea ecx, [ebp - 0x838]
call fcn.00459400
lea ecx, [ebp - 0x838]
push ecx
lea ecx, [ebp - 0x830]
call fcn.00451520
mov byte [ebp - 4], 2
mov edx, dword [ebp + 8]
movzx eax, word [edx + 2]
mov dword [ebp - 0x914], eax
mov ecx, dword [ebp - 0x914]
sub ecx, 0x50
mov dword [ebp - 0x914], ecx
cmp dword [ebp - 0x914], 0x28
ja case.0x46ce3e.1
mov edx, dword [ebp - 0x914]
movzx eax, byte [edx + 0x46d754]
jmp dword [eax*4 + 0x46d744]
mov ecx, str.Wordconv.exe
test ecx, ecx
jne 0x46ce5a
mov dword [ebp - 0x888], 0
jmp 0x46ce6d
push str.Wordconv.exe
call fcn.004f810a
add esp, 4
mov dword [ebp - 0x888], eax
mov edx, dword [ebp - 0x888]
push edx
push str.Wordconv.exe
lea ecx, [ebp - 0x838]
call fcn.0044ecb0
mov eax, dword [ebp - 0x838]
mov dword [ebp - 0x88c], eax
mov ecx, dword [ebp - 0x88c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x46cfa1
mov edx, dword [ebp - 0x838]
mov dword [ebp - 0x18], edx
cmp dword [ebp - 0x18], 0
jne 0x46cec3
mov dword [ebp - 0x918], 0
jmp 0x46cf81
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x3fffffff
jle 0x46ceeb
mov dword [ebp - 0x91c], 0
jmp 0x46cf75
mov eax, dword [ebp - 0x10]
shl eax, 1
call fcn.004f86f0
mov dword [ebp - 0x894], esp
mov ecx, dword [ebp - 0x898]
mov dword [ebp - 0x91c], ecx
cmp dword [ebp - 0x894], 0
je 0x46cf16
cmp dword [ebp - 0x18], 0
jne 0x46cf22
mov dword [ebp - 0x91c], 0
jmp 0x46cf75
mov edx, dword [ebp - 0x894]
mov byte [edx], 0
push 0
push 0
mov eax, dword [ebp - 0x10]
shl eax, 1
push eax
mov ecx, dword [ebp - 0x894]
push ecx
push 0xffffffffffffffff
mov edx, dword [ebp - 0x18]
push edx
push 0
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x890], eax
cmp dword [ebp - 0x890], 0
jne 0x46cf69
mov dword [ebp - 0x91c], 0
jmp 0x46cf75
mov ecx, dword [ebp - 0x894]
mov dword [ebp - 0x91c], ecx
mov edx, dword [ebp - 0x91c]
mov dword [ebp - 0x918], edx
mov eax, dword [ebp - 0x918]
push eax
push str.office_InstallRoot:_s
call fcn.0047c040
add esp, 8
mov dword [ebp - 0x14], 1
jmp 0x46d106
lea ecx, [ebp - 0x830]
push ecx
lea ecx, [ebp - 0x838]
call fcn.0044f9d0
mov edx, str.wordconv.exe
test edx, edx
jne 0x46cfc8
mov dword [ebp - 0x89c], 0
jmp 0x46cfdb
push str.wordconv.exe
call fcn.004f810a
add esp, 4
mov dword [ebp - 0x89c], eax
mov eax, dword [ebp - 0x89c]
push eax
push str.wordconv.exe
lea ecx, [ebp - 0x838]
call fcn.0044ecb0
mov ecx, dword [ebp - 0x838]
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0x18], 0
jne 0x46d010
mov dword [ebp - 0x920], 0
jmp 0x46d0ce
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x3fffffff
jle 0x46d038
mov dword [ebp - 0x924], 0
jmp 0x46d0c2
mov eax, dword [ebp - 0x10]
shl eax, 1
call fcn.004f86f0
mov dword [ebp - 0x8a4], esp
mov eax, dword [ebp - 0x8a8]
mov dword [ebp - 0x924], eax
cmp dword [ebp - 0x8a4], 0
je 0x46d063
cmp dword [ebp - 0x18], 0
jne 0x46d06f
mov dword [ebp - 0x924], 0
jmp 0x46d0c2
mov ecx, dword [ebp - 0x8a4]
mov byte [ecx], 0
push 0
push 0
mov edx, dword [ebp - 0x10]
shl edx, 1
push edx
mov eax, dword [ebp - 0x8a4]
push eax
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x18]
push ecx
push 0
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x8a0], eax
cmp dword [ebp - 0x8a0], 0
jne 0x46d0b6
mov dword [ebp - 0x924], 0
jmp 0x46d0c2
mov eax, dword [ebp - 0x8a4]
mov dword [ebp - 0x924], eax
mov ecx, dword [ebp - 0x924]
mov dword [ebp - 0x920], ecx
mov edx, dword [ebp - 0x920]
push edx
push str.office_InstallRoot:_s
call fcn.0047c040
add esp, 8
mov eax, dword [ebp - 0x838]
mov dword [ebp - 0x8ac], eax
mov ecx, dword [ebp - 0x8ac]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x46d106
mov dword [ebp - 0x14], 1
jmp case.0x46ce3e.1
mov edx, str.Excelcnv.exe
test edx, edx
jne 0x46d120
mov dword [ebp - 0x8b0], 0
jmp 0x46d133
push str.Excelcnv.exe
call fcn.004f810a
add esp, 4
mov dword [ebp - 0x8b0], eax
mov eax, dword [ebp - 0x8b0]
push eax
push str.Excelcnv.exe
lea ecx, [ebp - 0x838]
call fcn.0044ecb0
mov ecx, dword [ebp - 0x838]
mov dword [ebp - 0x8b4], ecx
mov edx, dword [ebp - 0x8b4]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x46d267
mov eax, dword [ebp - 0x838]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x46d189
mov dword [ebp - 0x928], 0
jmp 0x46d247
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x3fffffff
jle 0x46d1b1
mov dword [ebp - 0x92c], 0
jmp 0x46d23b
mov eax, dword [ebp - 0x10]
shl eax, 1
call fcn.004f86f0
mov dword [ebp - 0x8bc], esp
mov edx, dword [ebp - 0x8c0]
mov dword [ebp - 0x92c], edx
cmp dword [ebp - 0x8bc], 0
je 0x46d1dc
cmp dword [ebp - 0x18], 0
jne 0x46d1e8
mov dword [ebp - 0x92c], 0
jmp 0x46d23b
mov eax, dword [ebp - 0x8bc]
mov byte [eax], 0
push 0
push 0
mov ecx, dword [ebp - 0x10]
shl ecx, 1
push ecx
mov edx, dword [ebp - 0x8bc]
push edx
push 0xffffffffffffffff
mov eax, dword [ebp - 0x18]
push eax
push 0
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x8b8], eax
cmp dword [ebp - 0x8b8], 0
jne 0x46d22f
mov dword [ebp - 0x92c], 0
jmp 0x46d23b
mov edx, dword [ebp - 0x8bc]
mov dword [ebp - 0x92c], edx
mov eax, dword [ebp - 0x92c]
mov dword [ebp - 0x928], eax
mov ecx, dword [ebp - 0x928]
push ecx
push str.office_InstallRoot:_s
call fcn.0047c040
add esp, 8
mov dword [ebp - 0x14], 1
jmp 0x46d3cc
lea edx, [ebp - 0x830]
push edx
lea ecx, [ebp - 0x838]
call fcn.0044f9d0
mov eax, str.excelcnv.exe
test eax, eax
jne 0x46d28e
mov dword [ebp - 0x8c4], 0
jmp 0x46d2a1
push str.excelcnv.exe
call fcn.004f810a
add esp, 4
mov dword [ebp - 0x8c4], eax
mov ecx, dword [ebp - 0x8c4]
push ecx
push str.excelcnv.exe
lea ecx, [ebp - 0x838]
call fcn.0044ecb0
mov edx, dword [ebp - 0x838]
mov dword [ebp - 0x18], edx
cmp dword [ebp - 0x18], 0
jne 0x46d2d6
mov dword [ebp - 0x930], 0
jmp 0x46d394
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x3fffffff
jle 0x46d2fe
mov dword [ebp - 0x934], 0
jmp 0x46d388
mov eax, dword [ebp - 0x10]
shl eax, 1
call fcn.004f86f0
mov dword [ebp - 0x8cc], esp
mov ecx, dword [ebp - 0x8d0]
mov dword [ebp - 0x934], ecx
cmp dword [ebp - 0x8cc], 0
je 0x46d329
cmp dword [ebp - 0x18], 0
jne 0x46d335
mov dword [ebp - 0x934], 0
jmp 0x46d388
mov edx, dword [ebp - 0x8cc]
mov byte [edx], 0
push 0
push 0
mov eax, dword [ebp - 0x10]
shl eax, 1
push eax
mov ecx, dword [ebp - 0x8cc]
push ecx
push 0xffffffffffffffff
mov edx, dword [ebp - 0x18]
push edx
push 0
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x8c8], eax
cmp dword [ebp - 0x8c8], 0
jne 0x46d37c
mov dword [ebp - 0x934], 0
jmp 0x46d388
mov ecx, dword [ebp - 0x8cc]
mov dword [ebp - 0x934], ecx
mov edx, dword [ebp - 0x934]
mov dword [ebp - 0x930], edx
mov eax, dword [ebp - 0x930]
push eax
push str.office_InstallRoot:_s
call fcn.0047c040
add esp, 8
mov ecx, dword [ebp - 0x838]
mov dword [ebp - 0x8d4], ecx
mov edx, dword [ebp - 0x8d4]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x46d3cc
mov dword [ebp - 0x14], 1
jmp case.0x46ce3e.1
mov eax, str.PPCNVCOM.exe
test eax, eax
jne 0x46d3e6
mov dword [ebp - 0x8d8], 0
jmp 0x46d3f9
push str.PPCNVCOM.exe
call fcn.004f810a
add esp, 4
mov dword [ebp - 0x8d8], eax
mov ecx, dword [ebp - 0x8d8]
push ecx
push str.PPCNVCOM.exe
lea ecx, [ebp - 0x838]
call fcn.0044ecb0
mov edx, dword [ebp - 0x838]
mov dword [ebp - 0x8dc], edx
mov eax, dword [ebp - 0x8dc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x46d52d
mov ecx, dword [ebp - 0x838]
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0x18], 0
jne 0x46d44f
mov dword [ebp - 0x938], 0
jmp 0x46d50d
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x3fffffff
jle 0x46d477
mov dword [ebp - 0x93c], 0
jmp 0x46d501
mov eax, dword [ebp - 0x10]
shl eax, 1
call fcn.004f86f0
mov dword [ebp - 0x8e4], esp
mov eax, dword [ebp - 0x8e8]
mov dword [ebp - 0x93c], eax
cmp dword [ebp - 0x8e4], 0
je 0x46d4a2
cmp dword [ebp - 0x18], 0
jne 0x46d4ae
mov dword [ebp - 0x93c], 0
jmp 0x46d501
mov ecx, dword [ebp - 0x8e4]
mov byte [ecx], 0
push 0
push 0
mov edx, dword [ebp - 0x10]
shl edx, 1
push edx
mov eax, dword [ebp - 0x8e4]
push eax
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x18]
push ecx
push 0
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x8e0], eax
cmp dword [ebp - 0x8e0], 0
jne 0x46d4f5
mov dword [ebp - 0x93c], 0
jmp 0x46d501
mov eax, dword [ebp - 0x8e4]
mov dword [ebp - 0x93c], eax
mov ecx, dword [ebp - 0x93c]
mov dword [ebp - 0x938], ecx
mov edx, dword [ebp - 0x938]
push edx
push str.office_InstallRoot:_s
call fcn.0047c040
add esp, 8
mov dword [ebp - 0x14], 1
jmp case.0x46ce3e.1
lea eax, [ebp - 0x830]
push eax
lea ecx, [ebp - 0x838]
call fcn.0044f9d0
mov ecx, str.ppcnvcom.exe
test ecx, ecx
jne 0x46d554
mov dword [ebp - 0x8ec], 0
jmp 0x46d567
push str.ppcnvcom.exe
call fcn.004f810a
add esp, 4
mov dword [ebp - 0x8ec], eax
mov edx, dword [ebp - 0x8ec]
push edx
push str.ppcnvcom.exe
lea ecx, [ebp - 0x838]
call fcn.0044ecb0
mov eax, dword [ebp - 0x838]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x46d59c
mov dword [ebp - 0x940], 0
jmp 0x46d65a
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x3fffffff
jle 0x46d5c4
mov dword [ebp - 0x944], 0
jmp 0x46d64e
mov eax, dword [ebp - 0x10]
shl eax, 1
call fcn.004f86f0
mov dword [ebp - 0x8f4], esp
mov edx, dword [ebp - 0x8f8]
mov dword [ebp - 0x944], edx
cmp dword [ebp - 0x8f4], 0
je 0x46d5ef
cmp dword [ebp - 0x18], 0
jne 0x46d5fb
mov dword [ebp - 0x944], 0
jmp 0x46d64e
mov eax, dword [ebp - 0x8f4]
mov byte [eax], 0
push 0
push 0
mov ecx, dword [ebp - 0x10]
shl ecx, 1
push ecx
mov edx, dword [ebp - 0x8f4]
push edx
push 0xffffffffffffffff
mov eax, dword [ebp - 0x18]
push eax
push 0
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x8f0], eax
cmp dword [ebp - 0x8f0], 0
jne 0x46d642
mov dword [ebp - 0x944], 0
jmp 0x46d64e
mov edx, dword [ebp - 0x8f4]
mov dword [ebp - 0x944], edx
mov eax, dword [ebp - 0x944]
mov dword [ebp - 0x940], eax
mov ecx, dword [ebp - 0x940]
push ecx
push str.office_InstallRoot:_s
call fcn.0047c040
add esp, 8
mov edx, dword [ebp - 0x838]
mov dword [ebp - 0x8fc], edx
mov eax, dword [ebp - 0x8fc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je case.0x46ce3e.1
mov dword [ebp - 0x14], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x830]
call fcn.0044f990
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x838]
call fcn.0044f990
mov dword [ebp - 0x908], 0
cmp dword [ebp - 0x28], 0
je 0x46d6d7
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x908], eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x83c], edx
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x90c], 0
cmp dword [ebp - 0x28], 0
je 0x46d715
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x90c], eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov eax, dword [ebp - 0x83c]
lea esp, [ebp - 0x948]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x2c]
xor ecx, ebp
call fcn.004f8124
mov esp, ebp
pop ebp
ret 4