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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b84e5
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x6218c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x68], 0
push str.msftedit.dll
lea ecx, [ebp - 0x28]
call fcn.00406cb0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp + 8]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 0x5c]
mov dword [edx + 8], 1
push 0
mov eax, dword [ebp - 0x5c]
add eax, 0x44
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00452ca0
add esp, 0xc
test eax, eax
jge 0x453235
jmp 0x45343b
mov edx, dword [ebp - 0x5c]
add edx, 0xb8
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00452f20
add esp, 8
test eax, eax
jge 0x453254
jmp 0x45343b
mov ecx, dword [ebp - 0x5c]
mov dword [ecx + 0x10], 4
mov ecx, dword [ebp + 8]
call fcn.00454b40
mov byte [ebp - 0x5d], al
movzx edx, byte [ebp - 0x5d]
and edx, 1
shl edx, 3
mov eax, dword [ebp - 0x5c]
mov ecx, dword [eax + 0x14]
and ecx, 0xfffffff7
or ecx, edx
mov edx, dword [ebp - 0x5c]
mov dword [edx + 0x14], ecx
mov ecx, dword [ebp + 8]
call fcn.00454d20
mov ecx, dword [ebp - 0x5c]
mov dword [ecx + 0x1c], eax
cmp dword [ebp + 0xc], 0
je 0x4532c0
mov edx, dword [ebp - 0x5c]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x20]
mov dword [edx + 0x10], ecx
mov edx, dword [ebp - 0x5c]
mov eax, dword [edx + 0x10]
and eax, 0x100080
jne 0x4532c0
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ecx + 0x14]
or edx, 2
mov eax, dword [ebp - 0x5c]
mov dword [eax + 0x14], edx
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ecx + 0x10]
and edx, 0
jne 0x453301
mov eax, dword [ebp - 0x5c]
mov ecx, dword [eax + 0x10]
and ecx, 1
je 0x4532e7
mov edx, 3
mov eax, dword [ebp - 0x5c]
mov word [eax + 0xd0], dx
jmp 0x453301
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ecx + 0x10]
and edx, 2
je 0x453301
mov eax, 2
mov ecx, dword [ebp - 0x5c]
mov word [ecx + 0xd0], ax
mov edx, dword [ebp - 0x5c]
mov eax, dword [edx + 0x14]
or eax, 0x20
mov ecx, dword [ebp - 0x5c]
mov dword [ecx + 0x14], eax
lea edx, [ebp - 0x58]
push edx
call fcn.004090a0
add esp, 4
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x74], eax
mov byte [ebp - 4], 1
push str.msftedit50.dll
mov ecx, dword [ebp - 0x74]
push ecx
lea edx, [ebp - 0x40]
push edx
call fcn.0041f5c0
add esp, 0xc
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x78]
push eax
lea ecx, [ebp - 0x28]
call fcn.0040b6c0
lea ecx, [ebp - 0x40]
call fcn.00406c10
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x58]
call fcn.00406c10
lea ecx, [ebp - 0x28]
call fcn.00406a40
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x453382
push str.msftedit.dll
lea ecx, [ebp - 0x28]
call fcn.00409780
lea ecx, [ebp - 0x28]
call fcn.00406a40
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x68], eax
cmp dword [ebp - 0x68], 0
je 0x4533ac
push str.CreateTextServices
mov ecx, dword [ebp - 0x68]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x6c], 0
je 0x4533bf
lea edx, [ebp - 0x64]
push edx
mov eax, dword [ebp - 0x5c]
push eax
push 0
call dword [ebp - 0x6c]
mov ecx, dword [ebp - 0x5c]
add ecx, 0xc
push ecx
push 0x5f865c
mov edx, dword [ebp - 0x64]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x64]
push ecx
mov edx, dword [eax]
call edx
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x64]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x64]
push edx
mov eax, dword [ecx + 8]
call eax
cmp dword [ebp - 0x7c], 0
jge 0x4533f1
jmp 0x45343b
cmp dword [ebp + 0xc], 0
je 0x453420
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 0x24], 0
je 0x453420
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x24]
push eax
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ecx + 0xc]
mov eax, dword [ebp - 0x5c]
mov edx, dword [edx]
mov ecx, dword [eax + 0xc]
mov eax, dword [edx + 0x38]
call eax
test eax, eax
jge 0x453420
jmp 0x45343b
mov dword [ebp - 0x80], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00406c10
mov eax, dword [ebp - 0x80]
jmp 0x45345a
mov dword [ebp - 0x84], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00406c10
mov eax, dword [ebp - 0x84]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0057029b
mov esp, ebp
pop ebp
ret 8