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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46c276
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x48700c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x28]
mov ebx, dword [ebp + 0xc]
xor eax, eax
push 0xc
push str.msftedit.dll
mov dword [ebp - 0x60], esi
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.00401b50
mov dword [ebp - 4], 0
lea edx, [edi + 0x44]
push ecx
mov ecx, esi
mov dword [edi + 4], esi
mov dword [edi + 8], 1
call fcn.004286a0
add esp, 4
test eax, eax
js 0x428bee
push 0xbc
lea esi, [edi + 0xb8]
push 0
push esi
call fcn.00453e60
mov eax, dword [ebp - 0x60]
add esp, 0xc
mov dword [esi], 0xbc
mov dword [esi + 4], 0x8001003f
mov dword [esi + 0x18], 0x10001
mov dword [esi + 0x1c], 0x2d0
mov dword [edi + 0x10], 4
movzx ecx, byte [eax + 0x450]
shl ecx, 3
xor ecx, dword [edi + 0x14]
and ecx, 8
xor ecx, dword [edi + 0x14]
mov dword [edi + 0x14], ecx
mov eax, dword [eax + 0x488]
mov dword [edi + 0x1c], eax
test ebx, ebx
je 0x428aa8
mov eax, dword [ebx + 0x20]
mov dword [edi + 0x10], eax
test eax, 0x100080
jne 0x428aa8
or ecx, 2
mov dword [edi + 0x14], ecx
mov eax, dword [edi + 0x10]
test al, 1
je 0x428ab6
mov eax, 3
jmp 0x428abf
test al, 2
je 0x428ac6
mov eax, 2
mov word [edi + 0xd0], ax
or dword [edi + 0x14], 0x20
lea ecx, [ebp - 0x58]
call fcn.00450bf0
push str.msftedit50.dll
mov edx, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.00416560
add esp, 4
mov esi, eax
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x428b20
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x428b03
inc eax
push eax
push dword [ebp - 0x28]
call fcn.00401d70
xor eax, eax
mov dword [ebp - 0x14], 7
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.00413730
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x428b32
inc eax
push eax
push dword [ebp - 0x40]
call fcn.00401d70
xor eax, eax
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov byte [ebp - 4], al
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x30], 0
cmp eax, 8
jb 0x428b5b
inc eax
push eax
push dword [ebp - 0x58]
call fcn.00401d70
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x428b81
push 0xc
push str.msftedit.dll
lea ecx, [ebp - 0x28]
call fcn.00401b50
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x428bb0
push str.CreateTextServices
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x428bb0
lea ecx, [ebp - 0x5c]
push ecx
push edi
push 0
call eax
mov eax, dword [ebp - 0x5c]
add edi, 0xc
push edi
push 0x47503c
push eax
mov ecx, dword [eax]
call dword [ecx]
mov ecx, dword [ebp - 0x5c]
mov esi, eax
push ecx
mov edx, dword [ecx]
call dword [edx + 8]
test esi, esi
js 0x428bee
test ebx, ebx
je 0x428be7
mov edx, dword [ebx + 0x24]
test edx, edx
je 0x428be7
mov ecx, dword [edi]
push edx
mov eax, dword [ecx]
call dword [eax + 0x38]
test eax, eax
js 0x428bee
mov esi, 1
jmp 0x428bf0
xor esi, esi
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x428c02
inc ecx
push ecx
push dword [ebp - 0x28]
call fcn.00401d70
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00450f3a
mov esp, ebp
pop ebp
ret 8