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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x501a60
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x53806c]
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.0040e3d0
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.00461dd0
add esp, 0xc
test eax, eax
jge 0x462365
jmp 0x462567
mov edx, dword [ebp - 0x5c]
add edx, 0xb8
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00462050
add esp, 8
test eax, eax
jge 0x462384
jmp 0x462567
mov ecx, dword [ebp - 0x5c]
mov dword [ecx + 0x10], 4
mov ecx, dword [ebp + 8]
call fcn.00463ce0
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.00463ec0
mov ecx, dword [ebp - 0x5c]
mov dword [ecx + 0x1c], eax
cmp dword [ebp + 0xc], 0
je 0x4623f0
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 0x4623f0
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 0x462431
mov eax, dword [ebp - 0x5c]
mov ecx, dword [eax + 0x10]
and ecx, 1
je 0x462417
mov edx, 3
mov eax, dword [ebp - 0x5c]
mov word [eax + 0xd0], dx
jmp 0x462431
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ecx + 0x10]
and edx, 2
je 0x462431
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 ecx, [ebp - 0x58]
call fcn.00434150
mov dword [ebp - 0x70], eax
mov edx, dword [ebp - 0x70]
mov dword [ebp - 0x74], edx
mov byte [ebp - 4], 1
push str.msftedit50.dll
mov eax, dword [ebp - 0x74]
push eax
lea ecx, [ebp - 0x40]
push ecx
call fcn.00452930
add esp, 0xc
mov dword [ebp - 0x78], eax
mov edx, dword [ebp - 0x78]
push edx
lea ecx, [ebp - 0x28]
call fcn.0040e340
lea ecx, [ebp - 0x40]
call fcn.0040e2f0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x58]
call fcn.0040e2f0
lea ecx, [ebp - 0x28]
call fcn.0040e230
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4624ae
push str.msftedit.dll
lea ecx, [ebp - 0x28]
call fcn.004177b0
lea ecx, [ebp - 0x28]
call fcn.0040e230
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x68], eax
cmp dword [ebp - 0x68], 0
je 0x4624d8
push str.CreateTextServices
mov eax, dword [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x6c], 0
je 0x4624eb
lea ecx, [ebp - 0x64]
push ecx
mov edx, dword [ebp - 0x5c]
push edx
push 0
call dword [ebp - 0x6c]
mov eax, dword [ebp - 0x5c]
add eax, 0xc
push eax
push 0x51b578
mov ecx, dword [ebp - 0x64]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x64]
push eax
mov ecx, dword [edx]
call ecx
mov dword [ebp - 0x7c], eax
mov edx, dword [ebp - 0x64]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x64]
push ecx
mov edx, dword [eax + 8]
call edx
cmp dword [ebp - 0x7c], 0
jge 0x46251d
jmp 0x462567
cmp dword [ebp + 0xc], 0
je 0x46254c
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x24], 0
je 0x46254c
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x24]
push edx
mov eax, dword [ebp - 0x5c]
mov ecx, dword [eax + 0xc]
mov edx, dword [ebp - 0x5c]
mov eax, dword [ecx]
mov ecx, dword [edx + 0xc]
mov edx, dword [eax + 0x38]
call edx
test eax, eax
jge 0x46254c
jmp 0x462567
mov dword [ebp - 0x80], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0040e2f0
mov eax, dword [ebp - 0x80]
jmp 0x462586
mov dword [ebp - 0x84], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0040e2f0
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.004b9f48
mov esp, ebp
pop ebp
ret 8