Function at 0x42c0e0
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 0x54d0e5
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xa8
mov eax, dword [0x599680]
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 eax, dword [ebx + 8]
lea ecx, [ebp - 0x2c]
mov edi, dword [ebx + 0xc]
mov dword [ebp - 0x98], eax
xor eax, eax
push 0xc
push str.msftedit.dll
mov dword [ebp - 0x9c], edi
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
call fcn.004020a0
mov eax, dword [ebp - 0x98]
lea edx, [esi + 0x44]
mov dword [ebp - 4], 0
push ecx
mov ecx, eax
mov dword [esi + 4], eax
mov dword [esi + 8], 1
call fcn.0042be70
add esp, 4
test eax, eax
js 0x42c4f4
push 0xb8
lea eax, [esi + 0xbc]
push 0
push eax
call fcn.0050c560
mov eax, dword [ebp - 0x98]
add esp, 0xc
mov dword [esi + 0xb8], 0xbc
mov dword [esi + 0xbc], 0x8001003f
mov dword [esi + 0xd0], 0x10001
mov dword [esi + 0xd4], 0x2d0
mov dword [esi + 0x10], 4
movzx edx, byte [eax + 0x450]
shl edx, 3
xor edx, dword [esi + 0x14]
and edx, 8
xor edx, dword [esi + 0x14]
mov dword [esi + 0x14], edx
mov eax, dword [eax + 0x488]
mov dword [esi + 0x1c], eax
mov eax, edx
test edi, edi
je 0x42c23a
mov ecx, dword [edi + 0x20]
mov dword [esi + 0x10], ecx
test ecx, 0x100080
jne 0x42c210
or eax, 2
mov edx, eax
test cl, 1
je 0x42c225
mov ecx, 3
mov word [esi + 0xd0], cx
jmp 0x42c23a
mov eax, edx
test cl, 2
je 0x42c23a
mov eax, 2
mov word [esi + 0xd0], ax
mov eax, edx
or eax, 0x20
mov dword [ebp - 0xa0], 0
mov dword [esi + 0x14], eax
xorps xmm0, xmm0
push 0x1c
lea eax, [ebp - 0xb8]
movq qword [ebp - 0xa8], xmm0
push eax
push 0x405e60
movups xmmword [ebp - 0xb8], xmm0
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
xor eax, eax
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 7
mov word [ebp - 0x5c], ax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x74]
mov edx, dword [ebp - 0xb4]
call fcn.00401660
lea edx, [ebp - 0x5c]
mov byte [ebp - 4], 2
mov ecx, eax
call fcn.00405850
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x60]
mov byte [ebp - 0x8d], al
cmp ecx, 8
jb 0x42c2ee
mov edx, dword [ebp - 0x74]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x42c2de
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42c54e
push ecx
push edx
call fcn.00509f9e
mov al, byte [ebp - 0x8d]
add esp, 8
xor ecx, ecx
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 7
mov word [ebp - 0x74], cx
test al, al
je 0x42c31a
movups xmm0, xmmword [ebp - 0x5c]
movups xmmword [ebp - 0x44], xmm0
movq xmm0, qword [ebp - 0x4c]
movq qword [ebp - 0x34], xmm0
jmp 0x42c376
xor eax, eax
mov dword [ebp - 0x34], ecx
push eax
push 0x57e7b0
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
call fcn.004020a0
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x48]
cmp ecx, 8
jb 0x42c376
mov edx, dword [ebp - 0x5c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x42c36c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42c54e
push ecx
push edx
call fcn.00509f9e
add esp, 8
push str.msftedit50.dll
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x8c]
push eax
call fcn.00414130
mov edi, eax
add esp, 0xc
lea eax, [ebp - 0x2c]
cmp eax, edi
je 0x42c407
mov ecx, dword [ebp - 0x18]
cmp ecx, 8
jb 0x42c3d5
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x42c3cb
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42c553
push ecx
push edx
call fcn.00509f9e
add esp, 8
mov dword [ebp - 0x1c], 0
xor eax, eax
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
movups xmm0, xmmword [edi]
movups xmmword [ebp - 0x2c], xmm0
movq xmm0, qword [edi + 0x10]
movq qword [ebp - 0x1c], xmm0
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], 7
mov word [edi], ax
lea ecx, [ebp - 0x8c]
call fcn.00401f60
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x30]
cmp ecx, 8
jb 0x42c450
mov edx, dword [ebp - 0x44]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x42c446
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42c553
push ecx
push edx
call fcn.00509f9e
add esp, 8
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x42c476
push 0xc
push str.msftedit.dll
lea ecx, [ebp - 0x2c]
call fcn.004020a0
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x42c4a8
push str.CreateTextServices
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x42c4a8
lea ecx, [ebp - 0x94]
push ecx
push esi
push 0
call eax
mov eax, dword [ebp - 0x94]
lea edi, [esi + 0xc]
push edi
push 0x57e908
push eax
mov ecx, dword [eax]
call dword [ecx]
mov ecx, dword [ebp - 0x94]
mov esi, eax
push ecx
mov edx, dword [ecx]
call dword [edx + 8]
test esi, esi
js 0x42c4f4
mov edx, dword [ebp - 0x9c]
test edx, edx
je 0x42c4ed
mov edx, dword [edx + 0x24]
test edx, edx
je 0x42c4ed
mov ecx, dword [edi]
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 0x38]
call eax
test eax, eax
js 0x42c4f4
mov esi, 1
jmp 0x42c4f6
xor esi, esi
mov ecx, dword [ebp - 0x18]
cmp ecx, 8
jb 0x42c52c
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x42c522
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42c558
push ecx
push edx
call fcn.00509f9e
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.00509f60
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8
call fcn.0051c85d
call fcn.0051c85d
call fcn.0051c85d
int3