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

Disassembly:
sub esp, 0x154
mov eax, dword [0x1007fa04]
xor eax, esp
mov dword [esp + 0x150], eax
push ebx
push ebp
mov ebp, dword [esp + 0x160]
mov ecx, ebp
call fcn.1000e680
movzx eax, word [ebp + 0x28]
xor ebx, ebx
cmp ax, 2
mov byte [esp + 0xa], bl
jb 0x1000ebe8
test ax, ax
ja 0x1000eb6a
push str.Firebird::string___pos_out_of_range
call fcn.10044f80
add esp, 4
mov eax, dword [ebp + 0x24]
mov al, byte [eax]
call fcn.1000e6a0
test al, al
je 0x1000ebe8
cmp word [ebp + 0x28], 1
ja 0x1000eb8c
push str.Firebird::string___pos_out_of_range
call fcn.10044f80
add esp, 4
mov ecx, dword [ebp + 0x24]
cmp byte [ecx + 1], 0x3a
jne 0x1000ebe8
cmp word [ebp + 0x28], 2
jne 0x1000eba7
mov ebx, dword [0x100835a8]
jmp 0x1000ec6c
push 2
mov ecx, ebp
call fcn.100050e0
cmp byte [eax], 0x5c
jne 0x1000ebcf
mov ebx, 3
cmp word [ebp + 0x28], bx
jne 0x1000ec67
mov ebx, dword [0x100835a8]
jmp 0x1000ec6c
pop ebp
xor al, al
pop ebx
mov ecx, dword [esp + 0x150]
xor ecx, esp
call fcn.10052756
add esp, 0x154
ret
movzx eax, word [ebp + 0x28]
cmp ax, 1
jb 0x1000ec6c
test ax, ax
ja 0x1000ec04
push str.Firebird::string___pos_out_of_range
call fcn.10044f80
add esp, 4
mov edx, dword [ebp + 0x24]
cmp byte [edx], 0x5c
jne 0x1000ec6c
movzx eax, word [ebp + 0x28]
cmp ax, 1
jne 0x1000ec1e
mov ebx, dword [0x100835a8]
jmp 0x1000ec6c
ja 0x1000ec2d
push str.Firebird::string___pos_out_of_range
call fcn.10044f80
add esp, 4
mov eax, dword [ebp + 0x24]
cmp byte [eax + 1], 0x5c
jne 0x1000ec64
push 2
push 0x5c
mov ecx, ebp
call fcn.1000e4f0
cmp dword [0x100835a8], eax
je 0x1000ebcf
add eax, 1
push eax
push 0x5c
mov ecx, ebp
call fcn.1000e4f0
mov ebx, eax
cmp dword [0x100835a8], ebx
je 0x1000ebcf
add ebx, 1
mov byte [esp + 0xa], 1
cmp dword [0x100835a8], ebx
push esi
mov byte [esp + 0xf], 0
je 0x1000ed09
push 1
push 0
push 0x1006df28
mov ecx, ebp
call fcn.100454b0
mov ecx, dword [0x100835a8]
cmp eax, ecx
jne 0x1000ed02
push 1
push 0
push 0x1006df24
mov ecx, ebp
call fcn.100454b0
mov ecx, dword [0x100835a8]
cmp eax, ecx
jne 0x1000ed02
mov ecx, dword [0x10071c0c]
push ecx
push 0x5c
mov ecx, ebp
call fcn.10045470
mov esi, eax
cmp dword [0x100835a8], esi
je 0x1000ed09
push esi
mov ecx, ebp
call fcn.100050e0
mov byte [eax], 0
mov eax, dword [ebp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1000ecea
test al, 0x10
jne 0x1000ecf5
mov ebx, dword [0x100835a8]
mov byte [esp + 0xf], 1
push esi
mov ecx, ebp
call fcn.100050e0
mov byte [eax], 0x5c
jmp 0x1000ed09
mov ebx, ecx
mov byte [esp + 0xf], 1
cmp dword [0x100835a8], ebx
push edi
mov dword [esp + 0x18], 0xffffffff
mov dword [esp + 0x1c], ebx
je 0x1000ef09
mov eax, dword [ebp + 0x24]
add eax, ebx
push 0x5c
push eax
call dword [sym.imp.MSVCR80.dll_strchr]
add esp, 8
test eax, eax
je 0x1000ed42
sub eax, dword [ebp + 0x24]
mov esi, eax
mov dword [esp + 0x14], esi
jmp 0x1000ed4e
mov edx, dword [0x10071c0c]
mov dword [esp + 0x14], edx
mov esi, edx
cmp dword [0x100835a8], esi
je 0x1000ed72
movzx eax, word [ebp + 0x28]
cmp esi, eax
jb 0x1000ed6b
push str.Firebird::string___pos_out_of_range
call fcn.10044f80
add esp, 4
mov ecx, dword [ebp + 0x24]
mov byte [esi + ecx], 0
movzx edx, word [ebp + 0x28]
cmp ebx, edx
jb 0x1000ed87
push str.Firebird::string___pos_out_of_range
call fcn.10044f80
add esp, 4
mov eax, dword [ebp + 0x24]
add eax, ebx
mov edi, 0x1006df20
mov esi, eax
mov ecx, 2
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x1000eece
cmp byte [esp + 0x12], dl
je 0x1000edad
cmp ebx, 2
jae 0x1000edc3
mov edi, 0x1006df1c
mov esi, eax
mov ecx, 3
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x1000eece
cmp byte [esp + 0x12], 0
je 0x1000ee0f
mov esi, eax
mov edi, 0x1006df1c
mov ecx, 3
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x1000ee0f
lea ecx, [ebx - 2]
push ecx
push 0x5c
mov ecx, ebp
call fcn.10045470
cmp eax, dword [esp + 0x1c]
jb 0x1000edf6
cmp eax, ebx
jae 0x1000edf6
lea ebx, [eax + 1]
mov ecx, dword [0x100835a8]
mov eax, dword [esp + 0x14]
cmp ecx, eax
jne 0x1000eee0
mov eax, ecx
jmp 0x1000eee5
lea eax, [esp + 0x20]
push eax
mov eax, dword [ebp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, dword [esp + 0x14]
cmp dword [0x100835a8], esi
mov edi, eax
mov dword [esp + 0x18], edi
je 0x1000ee4c
movzx ecx, word [ebp + 0x28]
cmp esi, ecx
jb 0x1000ee45
push str.Firebird::string___pos_out_of_range
call fcn.10044f80
add esp, 4
mov edx, dword [ebp + 0x24]
mov byte [esi + edx], 0x5c
cmp edi, 0xffffffff
je 0x1000ef14
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [0x100835a8], esi
jne 0x1000ee68
movzx esi, word [ebp + 0x28]
lea eax, [esp + 0x4c]
sub esi, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x1000ee71
push esi
sub eax, edx
push ebx
mov ecx, ebp
mov edi, eax
call fcn.10045320
movzx eax, word [ebp + 0x28]
cmp ebx, eax
push edi
jb 0x1000ee9f
lea ecx, [esp + 0x50]
push ecx
push edi
mov ecx, ebp
call fcn.10045a30
jmp 0x1000eead
lea edx, [esp + 0x50]
push edx
push edi
push ebx
mov ecx, ebp
call fcn.10045a70
push eax
call sub.MSVCR80.dll_memcpy
mov eax, dword [esp + 0x20]
add esp, 0xc
cmp eax, dword [0x100835a8]
je 0x1000ef02
movzx ecx, word [ebp + 0x28]
lea ebx, [ebx + edi + 1]
cmp ebx, ecx
jmp 0x1000eef4
mov eax, dword [esp + 0x14]
mov ecx, dword [0x100835a8]
cmp ecx, eax
jne 0x1000eee0
mov eax, ecx
jmp 0x1000eee5
sub eax, ebx
add eax, 1
push eax
push ebx
mov ecx, ebp
call fcn.10045320
movzx edx, word [ebp + 0x28]
cmp ebx, edx
jae 0x1000ef02
cmp dword [0x100835a8], ebx
jne 0x1000ed22
cmp dword [esp + 0x18], 0xffffffff
jne 0x1000ef21
cmp byte [esp + 0x13], 0
je 0x1000ef21
xor al, al
jmp 0x1000ef23
cmp dword [0x100835a8], esi
setne byte [esp + 0x13]
jmp 0x1000ef09
mov al, 1
mov ecx, dword [esp + 0x160]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10052756
add esp, 0x154
ret