Function at 0x1004e230
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.1003c340
push edi
push 0x10000080
push 3
push edi
mov esi, eax
push edi
push SysReAllocString
cmp esi, edi
je 0x1004e274
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push esi
mov edi, eax
call fcn.1009cc76
add esp, 4
jmp 0x1004e27d
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x1004e28e
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.1003d200
test eax, eax
jne 0x1004e468
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 0x1004e451
cmp dword [ebp - 0x1c], eax
jl 0x1004e43a
mov eax, dword [ebp - 0x20]
jg 0x1004e2d7
test eax, eax
je 0x1004e43a
push 1
push eax
mov dword [ebp - 0x14], 0
call fcn.1002da60
add esp, 8
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x1004e2fc
mov dword [ebp - 4], 7
jmp 0x1004e451
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 0x1004e441
mov edi, dword [ebp - 0x10]
cmp dword [ebp - 0x1c], eax
jl 0x1004e43a
jg 0x1004e331
cmp dword [ebp - 0x20], eax
jbe 0x1004e43a
mov ecx, edi
call fcn.1003c340
mov esi, eax
test esi, esi
je 0x1004e358
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ebx, ebx
cmp eax, 0xffffffff
push esi
setne bl
call fcn.1009cc76
add esp, 4
jmp 0x1004e367
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ebx, ebx
cmp eax, 0xffffffff
setne bl
test ebx, ebx
je 0x1004e408
lea ecx, [ebp - 0xc]
push ecx
mov eax, edi
mov dword [ebp - 0xc], 0
call fcn.1003c7e0
add esp, 4
mov dword [ebp - 4], eax
test eax, eax
jne 0x1004e441
mov ecx, dword [ebp - 0xc]
lea ebx, [ebp - 0x14]
call fcn.1004d5e0
mov esi, eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], esi
test eax, eax
je 0x1004e3b3
mov edx, dword [eax]
mov ecx, dword [edx]
lea eax, [ebp - 0xc]
push eax
call ecx
add esp, 4
test esi, esi
jne 0x1004e441
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x1004e3f5
mov ecx, dword [ebp + 8]
mov eax, ebx
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x1004e3e7
test dl, dl
je 0x1004e3e3
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1004e3e7
add eax, 2
add ecx, 2
test dl, dl
jne 0x1004e3c7
xor eax, eax
jmp 0x1004e3ec
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x1004e3f5
lea esi, [eax + 1]
jmp 0x1004e3f7
xor esi, esi
test ebx, ebx
je 0x1004e404
push ebx
call fcn.1009cc76
add esp, 4
test esi, esi
jne 0x1004e441
mov eax, edi
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1004e410
sub eax, edx
lea edi, [edi + eax + 1]
mov eax, edi
sub eax, dword [ebp - 0x10]
cdq
cmp edx, dword [ebp - 0x1c]
jl 0x1004e331
jg 0x1004e437
cmp eax, dword [ebp - 0x20]
jb 0x1004e331
mov ebx, dword [ebp + 8]
mov eax, ebx
call fcn.1003c500
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x1004e451
push eax
call fcn.1009cc76
add esp, 4
mov eax, dword [ebp - 8]
test eax, eax
je 0x1004e465
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