Function at 0x10009290
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x1005d780
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x10071430]
xor eax, esp
mov dword [esp + 0x68], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10071430]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
mov eax, dword [esp + 0x90]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x94]
mov esi, ecx
xor ebp, ebp
push 0xc
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], eax
mov dword [eax], ebp
call fcn.1004846c
add esp, 4
cmp eax, ebp
je 0x10009306
mov dword [eax + 4], ebp
or ebx, 0xffffffff
mov dword [eax], vtable.NKZ::CInFileStream.0
mov dword [eax + 8], ebx
mov edi, eax
jmp 0x1000930b
xor edi, edi
or ebx, 0xffffffff
mov dword [esp + 0x14], edi
cmp edi, ebp
je 0x1000931b
mov ecx, dword [edi]
mov edx, dword [ecx + 4]
push edi
call edx
mov dword [esp + 0x88], ebp
cmp dword [esi + 0x18], 8
jb 0x1000932d
mov esi, dword [esi + 4]
jmp 0x10009330
add esi, 4
mov eax, dword [edi + 8]
cmp eax, ebx
je 0x10009341
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 8], ebx
push ebp
push ebp
push 3
push ebp
push 1
push SysReAllocString
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [edi + 8], eax
cmp eax, ebx
jne 0x1000937c
call fcn.10006a70
mov esi, eax
cmp esi, ebp
je 0x1000937c
mov dword [esp + 0x88], ebx
mov eax, dword [edi]
mov ecx, dword [eax + 8]
push edi
call ecx
mov eax, esi
jmp 0x10009779
push 0x18
call fcn.1004846c
add esp, 4
cmp eax, ebp
je 0x10009397
push ebp
push ebp
mov esi, eax
call fcn.1000ae50
mov ebx, eax
jmp 0x10009399
xor ebx, ebx
mov dword [esp + 0x20], ebx
cmp ebx, ebp
je 0x100093a9
mov edx, dword [ebx]
mov eax, dword [edx + 4]
push ebx
call eax
push 0x2a
lea ecx, [esp + 0x54]
push ebp
push ecx
mov byte [esp + 0x94], 1
call fcn.1004c5f0
add esp, 0xc
mov eax, ebx
lea esi, [esp + 0x50]
call fcn.10001fd0
mov esi, eax
cmp esi, ebp
je 0x10009400
mov byte [esp + 0x88], 0
cmp ebx, ebp
je 0x100093e6
mov edx, dword [ebx]
mov eax, dword [edx + 8]
push ebx
call eax
mov dword [esp + 0x88], 0xffffffff
mov ecx, dword [edi]
mov edx, dword [ecx + 8]
push edi
call edx
mov eax, esi
jmp 0x10009779
movzx esi, word [esp + 0x70]
mov byte [esp + 0x88], 0
cmp ebx, ebp
je 0x10009419
mov eax, dword [ebx]
mov ecx, dword [eax + 8]
push ebx
call ecx
mov dword [esp + 0x88], 0xffffffff
mov edx, dword [edi]
mov eax, dword [edx + 8]
push edi
call eax
cmp si, bp
jne 0x1000943b
mov eax, 0x80004005
jmp 0x10009779
dec esi
movzx esi, si
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x18], esi
cmp si, bp
jbe 0x1000976d
jmp 0x10009456
mov esi, dword [esp + 0x18]
xor ecx, ecx
mov dword [esp + 0x4c], 7
mov dword [esp + 0x48], ebp
mov word [esp + 0x38], cx
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x34]
push edx
mov dword [esp + 0x8c], 2
call fcn.10008590
test eax, eax
je 0x10009674
mov ebx, 8
cmp si, 1
jne 0x1000952f
mov eax, dword [esp + 0x38]
cmp dword [esp + 0x4c], ebx
jae 0x100094a7
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x100094ea
lea edi, [esp + 0x14]
lea ebx, [esp + 0x34]
mov dword [esp + 0x14], 0x2e
call fcn.1000a2a0
mov ebx, eax
or eax, 0xffffffff
lea esi, [esp + 0x34]
call fcn.100066f0
push 4
mov eax, str..exe
mov ecx, esi
call fcn.1000a350
xor ebp, ebp
mov ebx, 8
mov eax, dword [esp + 0x38]
mov dword [esp + 0x20], ebp
mov dword [esp + 0x14], ebp
cmp dword [esp + 0x4c], ebx
jae 0x10009500
lea eax, [esp + 0x38]
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x24]
call fcn.1000ad00
add esp, 4
cmp eax, ebp
jl 0x10009692
cmp dword [esp + 0x20], 0x7ea5a6b
jne 0x10009692
mov edx, dword [esp + 0x14]
mov dword [esp + 0x1c], edx
push 0xc
call fcn.1004846c
add esp, 4
cmp eax, ebp
je 0x10009551
mov dword [eax + 4], ebp
mov dword [eax], vtable.NKZ::CInFileStream.0
mov dword [eax + 8], 0xffffffff
mov edi, eax
jmp 0x10009553
xor edi, edi
mov dword [esp + 0x14], edi
cmp edi, ebp
je 0x10009563
mov eax, dword [edi]
mov ecx, dword [eax + 4]
push edi
call ecx
mov byte [esp + 0x88], 3
mov eax, dword [esp + 0x38]
cmp dword [esp + 0x4c], ebx
jae 0x10009579
lea eax, [esp + 0x38]
push eax
mov esi, edi
call fcn.10007350
cmp eax, ebp
jl 0x1000967e
mov esi, dword [esp + 0x1c]
cmp esi, ebp
je 0x100095a5
mov edx, dword [edi]
mov eax, dword [edx + 0x10]
push ebp
push ebp
push ebp
push esi
push edi
call eax
cmp eax, ebp
jl 0x100096ae
push 0x18
call fcn.1004846c
add esp, 4
cmp eax, ebp
je 0x100095c0
push ebp
push esi
mov esi, eax
call fcn.1000ae50
mov ebx, eax
jmp 0x100095c2
xor ebx, ebx
mov dword [esp + 0x30], ebx
cmp ebx, ebp
je 0x100095d2
mov ecx, dword [ebx]
mov edx, dword [ecx + 4]
push ebx
call edx
push 0x2a
lea eax, [esp + 0x54]
push ebp
push eax
mov byte [esp + 0x94], 4
call fcn.1004c5f0
add esp, 0xc
mov eax, ebx
lea esi, [esp + 0x50]
call fcn.10001fd0
cmp eax, ebp
jl 0x100096cd
mov cx, word [esp + 0x18]
cmp word [esp + 0x70], cx
jne 0x100096f7
mov ecx, dword [esp + 0x28]
push 0xffffffffffffffff
push ebp
lea eax, [esp + 0x3c]
call fcn.10006980
mov byte [esp + 0x88], 3
cmp ebx, ebp
je 0x10009631
mov edx, dword [ebx]
mov eax, dword [edx + 8]
push ebx
call eax
mov byte [esp + 0x88], 2
cmp edi, ebp
je 0x10009645
mov ecx, dword [edi]
mov edx, dword [ecx + 8]
push edi
call edx
lea esi, [esp + 0x34]
mov dword [esp + 0x88], 0xffffffff
call fcn.10006a90
mov eax, dword [esp + 0x18]
add eax, 0xffff
mov dword [esp + 0x18], eax
cmp ax, bp
ja 0x10009452
jmp 0x1000976d
cmp dword [esp + 0x4c], 8
jmp 0x1000975e
mov byte [esp + 0x88], 2
cmp edi, ebp
je 0x10009692
mov edx, dword [edi]
mov eax, dword [edx + 8]
push edi
call eax
cmp dword [esp + 0x4c], ebx
jb 0x1000972d
mov ecx, dword [esp + 0x38]
push ecx
call fcn.10047eaf
add esp, 4
jmp 0x1000972d
mov byte [esp + 0x88], 2
cmp edi, ebp
je 0x100096c2
mov edx, dword [edi]
mov eax, dword [edx + 8]
push edi
call eax
lea esi, [esp + 0x34]
call fcn.10006a90
jmp 0x1000972d
mov byte [esp + 0x88], 3
cmp ebx, ebp
je 0x100096e1
mov ecx, dword [ebx]
mov edx, dword [ecx + 8]
push ebx
call edx
mov byte [esp + 0x88], 2
cmp edi, ebp
je 0x1000971f
mov eax, dword [edi]
mov ecx, dword [eax + 8]
push edi
call ecx
jmp 0x1000971f
mov byte [esp + 0x88], 3
cmp ebx, ebp
je 0x1000970b
mov edx, dword [ebx]
mov eax, dword [edx + 8]
push ebx
call eax
mov byte [esp + 0x88], 2
cmp edi, ebp
je 0x1000971f
mov ecx, dword [edi]
mov edx, dword [ecx + 8]
push edi
call edx
lea esi, [esp + 0x34]
call fcn.10006a90
mov ebx, 8
xor eax, eax
mov dword [esp + 0x4c], 7
mov dword [esp + 0x48], ebp
mov word [esp + 0x38], ax
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x34]
push ecx
push edx
mov dword [esp + 0x90], 5
call fcn.10008290
cmp dword [esp + 0x4c], ebx
jb 0x1000976d
mov eax, dword [esp + 0x38]
push eax
call fcn.10047eaf
add esp, 4
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x1c]
mov dword [ecx], edx
xor eax, eax
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.10047eba
add esp, 0x78
ret 8