Function at 0x10026490
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x54
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov ebx, ecx
call fcn.1002f7f0
mov dword [esp + 0x14], eax
test eax, eax
jl 0x100267cb
cmp word [esi + eax*2 + 2], 0
lea eax, [esi + eax*2]
je 0x100267cb
push eax
lea edi, [esp + 0x30]
call fcn.10025900
push esi
lea edi, [esp + 0x24]
call fcn.10025900
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x14]
cmp eax, edi
jae 0x100264f1
mov edx, dword [esp + 0x20]
mov edi, eax
xor ecx, ecx
mov dword [esp + 0x24], edi
mov word [edx + eax*2], cx
mov eax, dword [esp + 0x30]
cmp eax, 6
jbe 0x10026513
mov ecx, dword [esp + 0x2c]
push 0x100d3ccc
lea eax, [ecx + eax*2 - 0xc]
call fcn.100254e0
add esp, 4
test al, al
jne 0x10026521
push str.:_DATA
lea eax, [esp + 0x30]
call fcn.10025ae0
mov ecx, dword [esp + 0x20]
movzx eax, word [ecx]
cmp ax, 0x61
jb 0x10026534
cmp ax, 0x7a
jbe 0x10026540
cmp ax, 0x41
jb 0x1002659f
cmp ax, 0x5a
ja 0x1002659f
cmp word [ecx + 2], 0x3a
jne 0x1002659f
mov eax, dword [esp + 0x14]
cmp eax, 2
je 0x1002655c
cmp eax, 3
jne 0x1002659f
cmp word [ecx + 4], 0x5c
jne 0x1002659f
xor eax, eax
mov dword [ebx], eax
mov dword [ebx + 4], eax
mov dword [ebx + 0xc], eax
mov dword [ebx + 8], eax
mov dword [ebx + 0x14], eax
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x1c], eax
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x20], eax
mov byte [ebx + 0x24], al
mov byte [ebx + 0x25], al
mov edx, dword [ebx + 0x28]
lea esi, [ebx + 0x28]
xor ecx, ecx
cmp dword [esp + 0x14], 2
mov dword [esi + 4], eax
mov word [edx], cx
jne 0x100265b1
lea edx, [esp + 0x20]
push edx
call fcn.10025a20
jmp 0x100265af
push ecx
mov ecx, ebx
call fcn.10026490
test al, al
je 0x100267b1
xor eax, eax
and dword [ebx + 0x20], 0xfffffbef
mov dword [ebx], eax
mov dword [ebx + 4], eax
xor ecx, ecx
lea eax, [edi + 1]
mov edx, 2
mul edx
seto cl
mov dword [esp + 0x38], 0xffffffff
neg ecx
or ecx, eax
push ecx
call fcn.1006387a
mov ecx, dword [esp + 0x24]
mov esi, eax
add esp, 4
lea eax, [edi + edi + 2]
push eax
push ecx
push esi
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], edi
call fcn.10064ea0
add esp, 0xc
mov edi, 3
push 8
call fcn.1006387a
xor edx, edx
add esp, 4
cmp dword [esp + 0x38], 0xffffffff
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], edi
mov word [eax], dx
je 0x1002663d
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x4c]
call fcn.10026320
jmp 0x1002664c
push esi
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [esp + 0x50]
call fcn.10026200
test al, al
je 0x10026679
mov edx, dword [esp + 0x2c]
mov esi, dword [esp + 0x48]
push edx
push esi
call fcn.10025430
add esp, 8
test al, al
jne 0x1002672f
push esi
call fcn.100628c6
mov esi, dword [esp + 0x40]
add esp, 4
jmp 0x10026607
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x26
sete al
test al, al
jne 0x100266d8
mov eax, dword [esp + 0x48]
push eax
call fcn.100628c6
mov ecx, dword [esp + 0x40]
add esp, 4
push ecx
call fcn.100628c6
mov eax, dword [esp + 0x3c]
add esp, 4
cmp eax, 0xffffffff
je 0x100266b3
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, dword [esp + 0x20]
push edx
call fcn.100628c6
mov eax, dword [esp + 0x30]
add esp, 4
push eax
call fcn.100628c6
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 2
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [esp + 0x48]
push ecx
call fcn.100628c6
mov edx, dword [esp + 0x40]
add esp, 4
push edx
call fcn.100628c6
mov eax, dword [esp + 0x3c]
add esp, 4
cmp eax, 0xffffffff
je 0x1002670a
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x20]
push eax
call fcn.100628c6
mov ecx, dword [esp + 0x30]
add esp, 4
push ecx
call fcn.100628c6
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esp + 0x4c]
cmp ecx, 7
jbe 0x10026749
lea eax, [ecx - 6]
cmp eax, ecx
jae 0x10026749
xor edx, edx
mov dword [esp + 0x4c], eax
mov word [esi + eax*2], dx
lea eax, [ebx + 0x28]
lea edi, [esp + 0x48]
call fcn.10025b40
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x5c]
push esi
mov dword [ebx], eax
mov dword [ebx + 4], ecx
mov byte [ebx + 0x24], 1
call fcn.100628c6
mov edx, dword [esp + 0x40]
add esp, 4
push edx
call fcn.100628c6
mov eax, dword [esp + 0x3c]
add esp, 4
cmp eax, 0xffffffff
je 0x1002678c
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x20]
push eax
call fcn.100628c6
mov ecx, dword [esp + 0x30]
add esp, 4
push ecx
call fcn.100628c6
add esp, 4
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edx, dword [esp + 0x20]
push edx
call fcn.100628c6
mov eax, dword [esp + 0x30]
add esp, 4
push eax
call fcn.100628c6
add esp, 4
push ebx
lea ecx, [esp + 0x18]
push ecx
mov ecx, esi
mov dword [esp + 0x1c], 0xffffffff
call fcn.100260f0
test al, al
je 0x100267ff
mov eax, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x100267f4
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x1c], eax
cmp eax, 2
je 0x10026828
cmp eax, 0x35
je 0x10026828
cmp eax, 0x43
je 0x10026828
cmp eax, 0x7b
je 0x10026828
cmp eax, 0xa1
jne 0x100269dc
mov ecx, esi
xor edx, edx
call fcn.1002f6e0
test al, al
je 0x1002683a
mov edx, 4
movzx eax, word [esi]
cmp ax, 0x5c
je 0x10026849
cmp ax, 0x2f
jne 0x10026898
cmp word [esi + 2], 0
jne 0x10026898
mov eax, esi
call fcn.100263e0
mov edx, eax
cmp edx, 0xffffffff
je 0x100269dc
test dl, 0x10
je 0x100269dc
mov eax, ebx
call fcn.100263b0
mov eax, dword [ebx + 0x28]
mov dword [ebx + 0x2c], 0
xor ecx, ecx
mov word [eax], cx
lea esi, [esp + 0x14]
mov dword [ebx + 0x20], edx
call fcn.10026060
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea edi, [esi + edx*2]
mov ecx, edi
call fcn.1002f590
test al, al
je 0x10026907
cmp word [esi + edx*2 + 6], 0
jne 0x10026907
mov eax, esi
call fcn.100263e0
mov edx, eax
cmp edx, 0xffffffff
je 0x100269dc
test dl, 0x10
je 0x100269dc
mov eax, ebx
call fcn.100263b0
mov dword [ebx + 0x20], edx
add ebx, 0x28
push edi
mov edi, ebx
call fcn.100259b0
mov eax, 2
cmp dword [ebx + 4], eax
jbe 0x100268f3
mov edx, dword [ebx]
mov dword [ebx + 4], eax
xor eax, eax
mov word [edx + 4], ax
lea esi, [esp + 0x14]
call fcn.10026060
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edx, esi
call fcn.1002f650
test eax, eax
jbe 0x100269dc
cmp word [esi + eax*2], 0
lea edx, [esi + eax*2]
mov dword [esp + 0x18], edx
je 0x100269dc
call fcn.1002f530
test eax, eax
jge 0x100269dc
push esi
lea edi, [esp + 0x30]
call fcn.10025900
mov eax, edi
call fcn.10025fe0
push 0x2a
mov eax, edi
call fcn.1001e760
push ebx
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x34]
mov byte [esp + 0x1b], 0
call fcn.100260f0
test al, al
je 0x100269aa
lea edi, [ebx + 0x28]
mov ecx, 0x100d3ce4
mov eax, edi
call fcn.10026020
test al, al
je 0x100269a5
mov edx, dword [esp + 0x18]
push edx
call fcn.100259b0
mov eax, dword [esp + 0x2c]
push eax
call fcn.100628c6
add esp, 4
lea esi, [esp + 0x14]
call fcn.10026060
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov byte [esp + 0x13], 1
mov eax, esi
call fcn.100263e0
cmp byte [esp + 0x13], 0
mov edx, eax
jne 0x100269f7
cmp edx, 0xffffffff
je 0x100269c4
test dl, 0x10
jne 0x100269f7
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edx, dword [esp + 0x2c]
push edx
call fcn.100628c6
add esp, 4
mov eax, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x100269ec
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, ebx
call fcn.100263b0
cmp edx, 0xffffffff
je 0x10026a08
mov dword [ebx + 0x20], edx
jmp 0x10026a0f
mov dword [ebx + 0x20], 0x10
mov eax, dword [esp + 0x18]
push eax
lea edi, [ebx + 0x28]
call fcn.100259b0
mov ecx, dword [esp + 0x2c]
push ecx
jmp 0x10026989