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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x575358
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x78
mov eax, dword [0x5b3ef4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x78], esi
mov eax, dword [ebx + 0xc]
lea ecx, [ebp - 0x44]
mov edi, dword [ebx + 8]
mov dword [ebp - 0x80], eax
xor eax, eax
push 0xc
push 0x598618
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
call fcn.00402e60
mov dword [ebp - 4], 0
lea edx, [esi + 0x44]
push ecx
mov ecx, edi
mov dword [esi + 4], edi
mov dword [esi + 8], 1
call fcn.00449510
add esp, 4
test eax, eax
js 0x449bf9
push 0xb8
lea eax, [esi + 0xbc]
push 0
push eax
call sub.msvcrt.dll_memset
mov dword [esi + 0xb8], 0xbc
add esp, 0xc
mov dword [esi + 0xbc], 0x8001003f
mov dword [esi + 0xd0], 0x10001
mov dword [esi + 0xd4], 0x2d0
mov dword [esi + 0x10], 4
movzx ecx, byte [edi + 0x568]
shl ecx, 3
xor ecx, dword [esi + 0x14]
and ecx, 8
xor ecx, dword [esi + 0x14]
mov dword [esi + 0x14], ecx
mov edx, ecx
mov eax, dword [edi + 0x5a0]
mov edi, dword [ebp - 0x80]
mov dword [esi + 0x1c], eax
mov eax, 4
test edi, edi
je 0x4498bf
mov eax, dword [edi + 0x20]
mov dword [esi + 0x10], eax
test eax, 0x100080
jne 0x4498bf
or edx, 2
test al, 1
je 0x4498ca
mov eax, 3
jmp 0x4498d3
test al, 2
je 0x4498da
mov eax, 2
mov word [esi + 0xd0], ax
or edx, 0x20
mov dword [ebp - 0x1c], 0
xor eax, eax
mov dword [esi + 0x14], edx
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
push eax
push 0x104
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.00402d80
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
push dword [ebp - 0x1c]
cmovae eax, dword [ebp - 0x2c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push dword [ebp - 0x80]
cmp dword [ebp - 0x18], 8
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp - 0x1c]
mov edx, esi
cmovae ecx, dword [ebp - 0x2c]
push 1
push 0x592f38
push 0xffffffffffffffff
call fcn.00450a00
xor ecx, ecx
mov dword [ebp - 0x4c], 0
mov word [ebp - 0x5c], cx
add esp, 0x10
mov dword [ebp - 0x48], 7
lea ecx, [eax + 1]
cmp esi, ecx
lea eax, [ebp - 0x2c]
cmovb ecx, esi
cmp dword [ebp - 0x18], 8
push ecx
cmovae eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x5c]
push eax
call fcn.00402e60
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x4499b7
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4499ad
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x449c53
push edx
push ecx
call fcn.0053140c
add esp, 8
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
push str.msftedit50.dll
lea eax, [ebp - 0x5c]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x74]
push eax
call fcn.0040be30
mov esi, eax
add esp, 0xc
lea eax, [ebp - 0x44]
cmp eax, esi
je 0x449a18
mov ecx, eax
call fcn.00403070
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [ebp - 0x44], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x34], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov edx, dword [ebp - 0x60]
cmp edx, 8
jb 0x449a52
mov ecx, dword [ebp - 0x74]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x449a48
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x449c58
push edx
push ecx
call fcn.0053140c
add esp, 8
xor eax, eax
mov dword [ebp - 0x64], 0
mov byte [ebp - 4], al
mov edx, dword [ebp - 0x48]
mov dword [ebp - 0x60], 7
mov word [ebp - 0x74], ax
cmp edx, 8
jb 0x449aa3
mov ecx, dword [ebp - 0x5c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x449a99
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x449c5d
push edx
push ecx
call fcn.0053140c
add esp, 8
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
cmovae eax, dword [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x449ac9
push 0xc
push 0x598618
lea ecx, [ebp - 0x44]
call fcn.00402e60
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
cmovae eax, dword [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x449afd
push str.CreateTextServices
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [ebp - 0x78]
test eax, eax
je 0x449b00
lea ecx, [ebp - 0x7c]
push ecx
push esi
push 0
call eax
jmp 0x449b00
mov esi, dword [ebp - 0x78]
lea edi, [esi + 0xc]
mov esi, dword [ebp - 0x7c]
mov dword [ebp - 0x84], edi
mov eax, dword [esi]
mov ecx, dword [eax]
cmp eax, vtable.ui::CTxtWinHost.0
jne 0x449c6b
mov dword [edi], 0
mov ecx, 0x593074
mov dword [ebp - 0x78], 0x80004002
mov edx, 0x592ee8
mov edi, 0xc
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x449b4a
add ecx, 4
add edx, 4
sub edi, 4
jae 0x449b37
jmp 0x449b71
mov ecx, 0x593074
mov edx, 0x593064
mov edi, 0xc
nop dword [eax]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x449b99
add ecx, 4
add edx, 4
sub edi, 4
jae 0x449b60
mov eax, dword [esi]
cmp eax, vtable.ui::CTxtWinHost.0
jne 0x449c62
mov edi, dword [ebp - 0x84]
inc dword [esi + 8]
xor eax, eax
mov dword [edi], esi
jmp 0x449ba6
mov edi, dword [ebp - 0x84]
xor eax, eax
mov dword [edi], esi
jmp 0x449ba6
mov edi, dword [ebp - 0x84]
mov eax, 0x80004002
jmp 0x449bac
mov esi, dword [ebp - 0x7c]
mov dword [ebp - 0x78], eax
mov edx, dword [esi]
mov ecx, dword [edx + 8]
cmp edx, vtable.ui::CTxtWinHost.0
jne 0x449c79
add dword [esi + 8], 0xffffffff
jne 0x449bd2
mov eax, edx
mov ecx, esi
push 1
call dword [eax + 0xa8]
mov eax, dword [ebp - 0x78]
test eax, eax
js 0x449bf9
mov eax, dword [ebp - 0x80]
test eax, eax
je 0x449bf2
mov edx, dword [eax + 0x24]
test edx, edx
je 0x449bf2
mov ecx, dword [edi]
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 0x38]
call eax
test eax, eax
js 0x449bf9
mov esi, 1
jmp 0x449bfb
xor esi, esi
mov edx, dword [ebp - 0x30]
cmp edx, 8
jb 0x449c31
mov ecx, dword [ebp - 0x44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x449c27
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x449c81
push edx
push ecx
call fcn.0053140c
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0053287b
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8
call fcn.0055d660
call fcn.0055d660
call fcn.0055d660
push esi
call dword [eax + 4]
jmp 0x449b8d
push edi
push 0x593074
push esi
call ecx
jmp 0x449ba6
push esi
call ecx
jmp 0x449bcf
call fcn.0055d660
int3