Function at 0x4305b0
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 0x4dac45
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xa8
mov eax, dword [0x516180]
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 0x4feb20
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.00402b10
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.00430340
add esp, 4
test eax, eax
js 0x4309c4
push 0xb8
lea eax, [esi + 0xbc]
push 0
push eax
call fcn.004a6680
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 0x43070a
mov ecx, dword [edi + 0x20]
mov dword [esi + 0x10], ecx
test ecx, 0x100080
jne 0x4306e0
or eax, 2
mov edx, eax
test cl, 1
je 0x4306f5
mov ecx, 3
mov word [esi + 0xd0], cx
jmp 0x43070a
mov eax, edx
test cl, 2
je 0x43070a
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 0x405f40
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.00402200
lea edx, [ebp - 0x5c]
mov byte [ebp - 4], 2
mov ecx, eax
call fcn.00405b50
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x60]
mov byte [ebp - 0x8d], al
cmp ecx, 8
jb 0x4307be
mov edx, dword [ebp - 0x74]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4307ae
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x430a1e
push ecx
push edx
call fcn.004a246f
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 0x4307ea
movups xmm0, xmmword [ebp - 0x5c]
movups xmmword [ebp - 0x44], xmm0
movq xmm0, qword [ebp - 0x4c]
movq qword [ebp - 0x34], xmm0
jmp 0x430846
xor eax, eax
mov dword [ebp - 0x34], ecx
push eax
push 0x4faae0
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
call fcn.00402b10
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x48]
cmp ecx, 8
jb 0x430846
mov edx, dword [ebp - 0x5c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x43083c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x430a1e
push ecx
push edx
call fcn.004a246f
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.00414290
mov edi, eax
add esp, 0xc
lea eax, [ebp - 0x2c]
cmp eax, edi
je 0x4308d7
mov ecx, dword [ebp - 0x18]
cmp ecx, 8
jb 0x4308a5
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x43089b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x430a23
push ecx
push edx
call fcn.004a246f
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.004029e0
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x30]
cmp ecx, 8
jb 0x430920
mov edx, dword [ebp - 0x44]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x430916
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x430a23
push ecx
push edx
call fcn.004a246f
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 0x430946
push 0xc
push 0x4feb20
lea ecx, [ebp - 0x2c]
call fcn.00402b10
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 0x430978
push str.CreateTextServices
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x430978
lea ecx, [ebp - 0x94]
push ecx
push esi
push 0
call eax
mov eax, dword [ebp - 0x94]
lea edi, [esi + 0xc]
push edi
push 0x4fac38
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 0x4309c4
mov edx, dword [ebp - 0x9c]
test edx, edx
je 0x4309bd
mov edx, dword [edx + 0x24]
test edx, edx
je 0x4309bd
mov ecx, dword [edi]
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 0x38]
call eax
test eax, eax
js 0x4309c4
mov esi, 1
jmp 0x4309c6
xor esi, esi
mov ecx, dword [ebp - 0x18]
cmp ecx, 8
jb 0x4309fc
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4309f2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x430a28
push ecx
push edx
call fcn.004a246f
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.004a248b
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8
call fcn.004b0b6f
call fcn.004b0b6f
call fcn.004b0b6f
int3