Function at 0x4253a0
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 0x4d2b05
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xa8
mov eax, dword [0x510200]
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 0x4f7410
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.00401ff0
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.00425130
add esp, 4
test eax, eax
js 0x4257b4
push 0xb8
lea eax, [esi + 0xbc]
push 0
push eax
call fcn.0049fbe0
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 0x4254fa
mov ecx, dword [edi + 0x20]
mov dword [esi + 0x10], ecx
test ecx, 0x100080
jne 0x4254d0
or eax, 2
mov edx, eax
test cl, 1
je 0x4254e5
mov ecx, 3
mov word [esi + 0xd0], cx
jmp 0x4254fa
mov eax, edx
test cl, 2
je 0x4254fa
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 0x408e80
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.00401720
lea edx, [ebp - 0x5c]
mov byte [ebp - 4], 2
mov ecx, eax
call fcn.00408ab0
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x60]
mov byte [ebp - 0x8d], al
cmp ecx, 8
jb 0x4255ae
mov edx, dword [ebp - 0x74]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x42559e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42580e
push ecx
push edx
call fcn.0049da2e
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 0x4255da
movups xmm0, xmmword [ebp - 0x5c]
movups xmmword [ebp - 0x44], xmm0
movq xmm0, qword [ebp - 0x4c]
movq qword [ebp - 0x34], xmm0
jmp 0x425636
xor eax, eax
mov dword [ebp - 0x34], ecx
push eax
push 0x4f4ad0
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
call fcn.00401ff0
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x48]
cmp ecx, 8
jb 0x425636
mov edx, dword [ebp - 0x5c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x42562c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42580e
push ecx
push edx
call fcn.0049da2e
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.00414350
mov edi, eax
add esp, 0xc
lea eax, [ebp - 0x2c]
cmp eax, edi
je 0x4256c7
mov ecx, dword [ebp - 0x18]
cmp ecx, 8
jb 0x425695
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x42568b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x425813
push ecx
push edx
call fcn.0049da2e
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.00401ec0
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x30]
cmp ecx, 8
jb 0x425710
mov edx, dword [ebp - 0x44]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x425706
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x425813
push ecx
push edx
call fcn.0049da2e
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 0x425736
push 0xc
push 0x4f7410
lea ecx, [ebp - 0x2c]
call fcn.00401ff0
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 0x425768
push str.CreateTextServices
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x425768
lea ecx, [ebp - 0x94]
push ecx
push esi
push 0
call eax
mov eax, dword [ebp - 0x94]
lea edi, [esi + 0xc]
push edi
push 0x4f4d08
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 0x4257b4
mov edx, dword [ebp - 0x9c]
test edx, edx
je 0x4257ad
mov edx, dword [edx + 0x24]
test edx, edx
je 0x4257ad
mov ecx, dword [edi]
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 0x38]
call eax
test eax, eax
js 0x4257b4
mov esi, 1
jmp 0x4257b6
xor esi, esi
mov ecx, dword [ebp - 0x18]
cmp ecx, 8
jb 0x4257ec
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4257e2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x425818
push ecx
push edx
call fcn.0049da2e
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.0049da3c
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8
call fcn.004a9f9f
call fcn.004a9f9f
call fcn.004a9f9f
int3