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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
mov ecx, ebx
mov dword [ebp - 8], edi
mov dword [ebp - 0x10], edi
call fcn.00434400
push edi
push 0x10000080
push 3
push edi
mov esi, eax
push edi
push SysReAllocString
cmp esi, edi
je 0x446324
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push esi
mov edi, eax
call fcn.0049b3dd
add esp, 4
jmp 0x44632d
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x44633e
mov eax, 0xe
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x28], edi
lea edi, [ebp - 8]
lea esi, [ebp - 0x2c]
call fcn.004352d0
test eax, eax
jne 0x446518
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
lea edx, [ebp - 0x20]
push edx
push eax
mov eax, dword [ecx + 0x24]
call eax
add esp, 8
mov dword [ebp - 4], eax
test eax, eax
jne 0x446501
cmp dword [ebp - 0x1c], eax
jl 0x4464ea
mov eax, dword [ebp - 0x20]
jg 0x446387
test eax, eax
je 0x4464ea
push 1
push eax
mov dword [ebp - 0x14], 0
call fcn.00425a90
add esp, 8
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x4463ac
mov dword [ebp - 4], 7
jmp 0x446501
mov esi, dword [ebp - 0x20]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
push esi
push eax
mov eax, dword [edx + 8]
push ecx
call eax
add esp, 0xc
mov dword [ebp - 4], eax
test eax, eax
jne 0x4464f1
mov edi, dword [ebp - 0x10]
cmp dword [ebp - 0x1c], eax
jl 0x4464ea
jg 0x4463e1
cmp dword [ebp - 0x20], eax
jbe 0x4464ea
mov ecx, edi
call fcn.00434400
mov esi, eax
test esi, esi
je 0x446408
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ebx, ebx
cmp eax, 0xffffffff
push esi
setne bl
call fcn.0049b3dd
add esp, 4
jmp 0x446417
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ebx, ebx
cmp eax, 0xffffffff
setne bl
test ebx, ebx
je 0x4464b8
lea ecx, [ebp - 0xc]
push ecx
mov eax, edi
mov dword [ebp - 0xc], 0
call fcn.004348a0
add esp, 4
mov dword [ebp - 4], eax
test eax, eax
jne 0x4464f1
mov ecx, dword [ebp - 0xc]
lea ebx, [ebp - 0x14]
call fcn.00445690
mov esi, eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], esi
test eax, eax
je 0x446463
mov edx, dword [eax]
mov ecx, dword [edx]
lea eax, [ebp - 0xc]
push eax
call ecx
add esp, 4
test esi, esi
jne 0x4464f1
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x4464a5
mov ecx, dword [ebp + 8]
mov eax, ebx
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x446497
test dl, dl
je 0x446493
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x446497
add eax, 2
add ecx, 2
test dl, dl
jne 0x446477
xor eax, eax
jmp 0x44649c
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4464a5
lea esi, [eax + 1]
jmp 0x4464a7
xor esi, esi
test ebx, ebx
je 0x4464b4
push ebx
call fcn.0049b3dd
add esp, 4
test esi, esi
jne 0x4464f1
mov eax, edi
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4464c0
sub eax, edx
lea edi, [edi + eax + 1]
mov eax, edi
sub eax, dword [ebp - 0x10]
cdq
cmp edx, dword [ebp - 0x1c]
jl 0x4463e1
jg 0x4464e7
cmp eax, dword [ebp - 0x20]
jb 0x4463e1
mov ebx, dword [ebp + 8]
mov eax, ebx
call fcn.004345c0
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x446501
push eax
call fcn.0049b3dd
add esp, 4
mov eax, dword [ebp - 8]
test eax, eax
je 0x446515
mov edx, dword [eax]
mov ecx, dword [edx]
lea eax, [ebp - 8]
push eax
call ecx
add esp, 4
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret