Function at 0x42f570
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 0x4dce85
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xa8
mov eax, dword [0x51a500]
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.00402790
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.0042f300
add esp, 4
test eax, eax
js 0x42f984
push 0xb8
lea eax, [esi + 0xbc]
push 0
push eax
call fcn.004a8ae0
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 0x42f6ca
mov ecx, dword [edi + 0x20]
mov dword [esi + 0x10], ecx
test ecx, 0x100080
jne 0x42f6a0
or eax, 2
mov edx, eax
test cl, 1
je 0x42f6b5
mov ecx, 3
mov word [esi + 0xd0], cx
jmp 0x42f6ca
mov eax, edx
test cl, 2
je 0x42f6ca
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 0x409110
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.00401f40
lea edx, [ebp - 0x5c]
mov byte [ebp - 4], 2
mov ecx, eax
call fcn.00408d20
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x60]
mov byte [ebp - 0x8d], al
cmp ecx, 8
jb 0x42f77e
mov edx, dword [ebp - 0x74]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x42f76e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42f9de
push ecx
push edx
call fcn.004a66b3
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 0x42f7aa
movups xmm0, xmmword [ebp - 0x5c]
movups xmmword [ebp - 0x44], xmm0
movq xmm0, qword [ebp - 0x4c]
movq qword [ebp - 0x34], xmm0
jmp 0x42f806
xor eax, eax
mov dword [ebp - 0x34], ecx
push eax
push 0x4fdac0
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
call fcn.00402790
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x48]
cmp ecx, 8
jb 0x42f806
mov edx, dword [ebp - 0x5c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x42f7fc
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42f9de
push ecx
push edx
call fcn.004a66b3
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.00414520
mov edi, eax
add esp, 0xc
lea eax, [ebp - 0x2c]
cmp eax, edi
je 0x42f897
mov ecx, dword [ebp - 0x18]
cmp ecx, 8
jb 0x42f865
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x42f85b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42f9e3
push ecx
push edx
call fcn.004a66b3
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.00402650
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x30]
cmp ecx, 8
jb 0x42f8e0
mov edx, dword [ebp - 0x44]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x42f8d6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42f9e3
push ecx
push edx
call fcn.004a66b3
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 0x42f906
push 0xc
push str.msftedit.dll
lea ecx, [ebp - 0x2c]
call fcn.00402790
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 0x42f938
push str.CreateTextServices
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x42f938
lea ecx, [ebp - 0x94]
push ecx
push esi
push 0
call eax
mov eax, dword [ebp - 0x94]
lea edi, [esi + 0xc]
push edi
push 0x4fdce8
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 0x42f984
mov edx, dword [ebp - 0x9c]
test edx, edx
je 0x42f97d
mov edx, dword [edx + 0x24]
test edx, edx
je 0x42f97d
mov ecx, dword [edi]
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 0x38]
call eax
test eax, eax
js 0x42f984
mov esi, 1
jmp 0x42f986
xor esi, esi
mov ecx, dword [ebp - 0x18]
cmp ecx, 8
jb 0x42f9bc
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x42f9b2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42f9e8
push ecx
push edx
call fcn.004a66b3
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.004a6675
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8
call fcn.004b86d5
call fcn.004b86d5
call fcn.004b86d5
int3