Function at 0x4145a0
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x483350
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x49a0d0]
xor eax, esp
mov dword [esp + 0x68], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x49a0d0]
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.0044997f
add esp, 4
cmp eax, ebp
je 0x414616
mov dword [eax + 4], ebp
or ebx, 0xffffffff
mov dword [eax], vtable.NKZ::CInFileStream.0
mov dword [eax + 8], ebx
mov edi, eax
jmp 0x41461b
xor edi, edi
or ebx, 0xffffffff
mov dword [esp + 0x14], edi
cmp edi, ebp
je 0x41462b
mov ecx, dword [edi]
mov edx, dword [ecx + 4]
push edi
call edx
mov dword [esp + 0x88], ebp
cmp dword [esi + 0x18], 8
jb 0x41463d
mov esi, dword [esi + 4]
jmp 0x414640
add esi, 4
mov eax, dword [edi + 8]
cmp eax, ebx
je 0x414651
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 0x41468c
call fcn.004093f0
mov esi, eax
cmp esi, ebp
je 0x41468c
mov dword [esp + 0x88], ebx
mov eax, dword [edi]
mov ecx, dword [eax + 8]
push edi
call ecx
mov eax, esi
jmp 0x414a88
push 0x18
call fcn.0044997f
add esp, 4
cmp eax, ebp
je 0x4146a7
push ebp
push ebp
mov esi, eax
call fcn.00410ac0
mov ebx, eax
jmp 0x4146a9
xor ebx, ebx
mov dword [esp + 0x1c], ebx
cmp ebx, ebp
je 0x4146b9
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.0044d300
add esp, 0xc
mov eax, ebx
lea esi, [esp + 0x50]
call fcn.00412e50
mov esi, eax
cmp esi, ebp
je 0x414710
mov byte [esp + 0x88], 0
cmp ebx, ebp
je 0x4146f6
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 0x414a88
movzx esi, word [esp + 0x70]
mov byte [esp + 0x88], 0
cmp ebx, ebp
je 0x414729
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 0x41474b
mov eax, 0x80004005
jmp 0x414a88
dec esi
movzx esi, si
mov dword [esp + 0x18], ebp
mov dword [esp + 0x20], esi
cmp si, bp
jbe 0x414a7c
jmp 0x414766
mov esi, dword [esp + 0x20]
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.00413890
test eax, eax
je 0x41498b
mov ebx, 8
cmp si, 1
jne 0x41483f
mov eax, dword [esp + 0x38]
cmp dword [esp + 0x4c], ebx
jae 0x4147b7
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4147fa
lea edi, [esp + 0x14]
lea ebx, [esp + 0x34]
mov dword [esp + 0x14], 0x2e
call fcn.00415970
push 0xffffffffffffffff
mov edi, eax
mov esi, ebx
call fcn.004029f6
push str..exe
mov ebx, 4
mov eax, esi
call fcn.004018e0
xor ebp, ebp
mov ebx, 8
mov eax, dword [esp + 0x38]
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x14], ebp
cmp dword [esp + 0x4c], ebx
jae 0x414810
lea eax, [esp + 0x38]
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x20]
call fcn.00410f10
add esp, 4
cmp eax, ebp
jl 0x4149a9
cmp dword [esp + 0x1c], 0x7ea5a6b
jne 0x4149a9
mov edx, dword [esp + 0x14]
mov dword [esp + 0x18], edx
push 0xc
call fcn.0044997f
add esp, 4
cmp eax, ebp
je 0x414861
mov dword [eax + 4], ebp
mov dword [eax], vtable.NKZ::CInFileStream.0
mov dword [eax + 8], 0xffffffff
mov edi, eax
jmp 0x414863
xor edi, edi
mov dword [esp + 0x14], edi
cmp edi, ebp
je 0x414873
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 0x414889
lea eax, [esp + 0x38]
push eax
mov esi, edi
call fcn.00411fd0
cmp eax, ebp
jl 0x414995
mov esi, dword [esp + 0x18]
cmp esi, ebp
je 0x4148b5
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 0x414995
push 0x18
call fcn.0044997f
add esp, 4
cmp eax, ebp
je 0x4148d0
push ebp
push esi
mov esi, eax
call fcn.00410ac0
mov ebx, eax
jmp 0x4148d2
xor ebx, ebx
mov dword [esp + 0x30], ebx
cmp ebx, ebp
je 0x4148e2
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.0044d300
add esp, 0xc
mov eax, ebx
lea esi, [esp + 0x50]
call fcn.00412e50
cmp eax, ebp
jl 0x4149c5
mov esi, dword [esp + 0x20]
cmp word [esp + 0x70], si
jne 0x4149fb
mov ecx, dword [esp + 0x28]
push 0xffffffffffffffff
push ebp
lea eax, [esp + 0x3c]
call fcn.00402c5e
mov byte [esp + 0x88], 3
cmp ebx, ebp
je 0x414940
mov ecx, dword [ebx]
mov edx, dword [ecx + 8]
push ebx
call edx
mov byte [esp + 0x88], 2
cmp edi, ebp
je 0x414954
mov eax, dword [edi]
mov ecx, dword [eax + 8]
push edi
call ecx
mov dword [esp + 0x88], 0xffffffff
cmp dword [esp + 0x4c], 8
jb 0x414973
mov edx, dword [esp + 0x38]
push edx
call fcn.004498cd
add esp, 4
add esi, 0xffff
mov dword [esp + 0x20], esi
cmp si, bp
ja 0x414762
jmp 0x414a7c
cmp dword [esp + 0x4c], 8
jmp 0x414a6d
mov byte [esp + 0x88], 2
cmp edi, ebp
je 0x4149a9
mov edx, dword [edi]
mov eax, dword [edx + 8]
push edi
call eax
cmp dword [esp + 0x4c], ebx
jb 0x414a3c
mov ecx, dword [esp + 0x38]
push ecx
call fcn.004498cd
add esp, 4
jmp 0x414a3c
mov byte [esp + 0x88], 3
cmp ebx, ebp
je 0x4149d9
mov edx, dword [ebx]
mov eax, dword [edx + 8]
push ebx
call eax
mov byte [esp + 0x88], 2
cmp edi, ebp
je 0x4149ed
mov ecx, dword [edi]
mov edx, dword [ecx + 8]
push edi
call edx
cmp dword [esp + 0x4c], 8
jb 0x414a37
mov eax, dword [esp + 0x38]
push eax
jmp 0x414a2f
mov byte [esp + 0x88], 3
cmp ebx, ebp
je 0x414a0f
mov ecx, dword [ebx]
mov edx, dword [ecx + 8]
push ebx
call edx
mov byte [esp + 0x88], 2
cmp edi, ebp
je 0x414a23
mov eax, dword [edi]
mov ecx, dword [eax + 8]
push edi
call ecx
cmp dword [esp + 0x4c], 8
jb 0x414a37
mov edx, dword [esp + 0x38]
push edx
call fcn.004498cd
add esp, 4
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.00413590
cmp dword [esp + 0x4c], ebx
jb 0x414a7c
mov eax, dword [esp + 0x38]
push eax
call fcn.004498cd
add esp, 4
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x18]
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.004498d8
add esp, 0x78
ret 8