Function at 0x422a0d
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x606134
call fcn.00465b38
sub esp, 0x210
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
push esi
cmp eax, ebx
mov esi, ecx
je 0x422cfe
cmp word [eax], bx
je 0x422cfe
push edi
push eax
lea ecx, [ebp + 8]
call fcn.005ece05
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x21a]
mov word [ebp - 0x21c], bx
rep stosd dword es:[edi], eax
push ebx
push ebx
push 0x146
mov dword [ebp - 4], ebx
push dword [esi + 0x76c]
stosw word es:[edi], ax
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
call edi
dec eax
cmp eax, ebx
mov dword [ebp - 0x10], eax
jl 0x422abb
lea eax, [ebp - 0x21c]
push eax
push dword [ebp - 0x10]
push 0x148
push dword [esi + 0x76c]
call edi
lea eax, [ebp - 0x21c]
push eax
push dword [ebp + 8]
call fcn.00466804
pop ecx
cmp eax, ebx
pop ecx
jne 0x422ab6
push ebx
push dword [ebp - 0x10]
push 0x144
push dword [esi + 0x76c]
call edi
dec dword [ebp - 0x10]
jns 0x422a79
push ebx
push ebx
push 0x146
push dword [esi + 0x76c]
call edi
dec eax
cmp eax, 9
mov dword [ebp - 0x10], eax
jl 0x422af0
jmp 0x422ad8
mov eax, dword [ebp - 0x10]
push ebx
push eax
push 0x144
push dword [esi + 0x76c]
call edi
dec dword [ebp - 0x10]
cmp dword [ebp - 0x10], 9
jge 0x422ad5
push dword [ebp + 8]
push ebx
push 0x14a
push dword [esi + 0x76c]
call edi
push ebx
push ebx
push 0x14e
push dword [esi + 0x76c]
call edi
mov ecx, esi
call fcn.004226af
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x422bfa
push 4
call fcn.004296ed
pop ecx
call fcn.004296f7
test eax, eax
je 0x422ced
lea eax, [ebp - 0x10]
push ebx
push eax
call fcn.004296fd
pop ecx
pop ecx
mov eax, dword [ebp - 0x10]
mov byte [ebp - 4], 1
cmp dword [eax - 8], ebx
je 0x422bea
mov edi, 0x69dc58
lea ecx, [ebp + 0x10]
push edi
call fcn.005ece05
push 0x8c
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 2
call fcn.005edf3b
push edi
lea ecx, [ebp + 0x14]
call fcn.005ece05
push dword [ebp - 0x10]
lea eax, [ebp + 0x14]
mov byte [ebp - 4], 3
push dword [ebp + 0x10]
push str._s_r_n_s
push eax
call fcn.005e20b1
add esp, 0x10
lea ecx, [ebp + 0xc]
push edi
call fcn.005ece05
push 0xc2
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 4
call fcn.005edf3b
push 0x30
mov ecx, esi
push dword [ebp + 0xc]
push dword [ebp + 0x14]
call fcn.005ea6ed
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 3
call fcn.005ecd91
lea ecx, [ebp + 0x14]
mov byte [ebp - 4], 2
call fcn.005ecd91
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 1
call fcn.005ecd91
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.005ecd91
jmp 0x422ced
mov ecx, 0x69de38
call fcn.0040d458
cmp dword [ebp + 0xc], ebx
je 0x422c0c
mov dword [esi + 0x64], ebx
lea eax, [ebp - 0x14]
mov ecx, esi
push eax
mov dword [ebp - 0x14], ebx
push dword [ebp + 8]
call fcn.00425542
test eax, eax
je 0x422cc6
cmp dword [ebp + 0x14], ebx
je 0x422c40
cmp dword [esi + 0xe58], 5
je 0x422c8b
lea ecx, [esi + 0xd2c]
call fcn.0044fbe0
jmp 0x422c8b
push dword [esi + 0xcac]
call fcn.00428d4f
mov edi, eax
pop ecx
neg edi
sbb edi, edi
neg edi
cmp dword [0x6a3388], ebx
je 0x422c76
push edi
push str.COEAViewerDlg::ChangeOpenFile_bDeleteFile__d_
push str.DeleteFile
push 4
push 0x6a2af4
call fcn.004cdcb0
add esp, 0x14
cmp dword [esi + 0xe58], 5
je 0x422c8b
push edi
lea ecx, [esi + 0xd2c]
call fcn.0044fb68
lea eax, [ebp + 8]
lea ecx, [esi + 0x5c]
push eax
call fcn.005eced8
mov ecx, esi
call fcn.00426dc0
push 0x69dc58
lea ecx, [esi + 0xac8]
call fcn.005ecf28
push ebx
push 1
mov ecx, esi
call fcn.004211ad
cmp dword [ebp + 0x10], ebx
je 0x422ce4
mov ecx, esi
call fcn.00427e04
jmp 0x422ce4
cmp dword [ebp - 0x14], ebx
je 0x422cd5
push dword [ebp + 8]
mov ecx, esi
call fcn.00421a2c
lea ecx, [esi + 0x5c]
call fcn.005ecd19
mov ecx, esi
call fcn.00421c14
push 1
mov dword [esi + 0xd0c], ebx
pop ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.005ecd91
mov eax, ebx
pop edi
jmp 0x422d00
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10