Function at 0x407420
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x4afed0
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x4d5784]
xor eax, esp
mov dword [esp + 0x68], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4d5784]
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 ebx, ebx
push 0xc
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], eax
mov dword [eax], ebx
call fcn.0042fde5
add esp, 4
cmp eax, ebx
je 0x407496
mov dword [eax + 4], ebx
or ebp, 0xffffffff
mov dword [eax], vtable.NKZ::CInFileStream.0
mov dword [eax + 8], ebp
mov edi, eax
jmp 0x40749b
xor edi, edi
or ebp, 0xffffffff
mov dword [esp + 0x14], edi
cmp edi, ebx
je 0x4074ab
mov ecx, dword [edi]
mov edx, dword [ecx + 4]
push edi
call edx
mov dword [esp + 0x88], ebx
cmp dword [esi + 0x18], 8
jb 0x4074bd
mov esi, dword [esi + 4]
jmp 0x4074c0
add esi, 4
mov eax, dword [edi + 8]
cmp eax, ebp
je 0x4074d1
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov dword [edi + 8], ebp
push ebx
push ebx
push 3
push ebx
push 1
push SysReAllocString
push esi
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov dword [edi + 8], eax
cmp eax, ebp
jne 0x40750c
call fcn.00404d00
mov esi, eax
cmp esi, ebx
je 0x40750c
mov dword [esp + 0x88], ebp
mov eax, dword [edi]
mov ecx, dword [eax + 8]
push edi
call ecx
mov eax, esi
jmp 0x40792c
push 0x18
call fcn.0042fde5
add esp, 4
cmp eax, ebx
je 0x407527
push ebx
push ebx
mov esi, eax
call fcn.00404a50
mov ebp, eax
jmp 0x407529
xor ebp, ebp
mov dword [esp + 0x1c], ebp
cmp ebp, ebx
je 0x40753a
mov edx, dword [ebp]
mov eax, dword [edx + 4]
push ebp
call eax
push 0x2a
lea ecx, [esp + 0x54]
push ebx
push ecx
mov byte [esp + 0x94], 1
call fcn.00430560
add esp, 0xc
mov eax, ebp
lea esi, [esp + 0x50]
call fcn.00405d90
mov esi, eax
cmp esi, ebx
je 0x407591
mov byte [esp + 0x88], bl
cmp ebp, ebx
je 0x407577
mov edx, dword [ebp]
mov eax, dword [edx + 8]
push ebp
call eax
mov dword [esp + 0x88], 0xffffffff
mov ecx, dword [edi]
mov edx, dword [ecx + 8]
push edi
call edx
mov eax, esi
jmp 0x40792c
movzx esi, word [esp + 0x70]
mov byte [esp + 0x88], bl
cmp ebp, ebx
je 0x4075aa
mov eax, dword [ebp]
mov ecx, dword [eax + 8]
push ebp
call ecx
mov dword [esp + 0x88], 0xffffffff
mov edx, dword [edi]
mov eax, dword [edx + 8]
push edi
call eax
cmp si, bx
jne 0x4075cc
mov eax, 0x80004005
jmp 0x40792c
dec esi
movzx esi, si
mov dword [esp + 0x18], ebx
mov dword [esp + 0x20], esi
cmp si, bx
jbe 0x407920
jmp 0x4075f4
mov esi, dword [esp + 0x20]
xor ecx, ecx
mov dword [esp + 0x4c], 7
mov dword [esp + 0x48], ebx
mov word [esp + 0x38], cx
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x34]
push edx
mov dword [esp + 0x8c], 2
call fcn.00406720
test eax, eax
je 0x40780d
mov ebp, 8
cmp si, 1
jne 0x4076c9
mov eax, dword [esp + 0x38]
cmp dword [esp + 0x4c], ebp
jae 0x407645
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x407684
push 1
push 0xffffffffffffffff
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x40]
mov dword [esp + 0x20], 0x2e
call fcn.00408500
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0x3c]
call fcn.004054a0
push 0x4ca2b4
lea ecx, [esp + 0x38]
call fcn.004084d0
mov eax, dword [esp + 0x38]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], ebx
cmp dword [esp + 0x4c], ebp
jae 0x40769a
lea eax, [esp + 0x38]
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x20]
call fcn.00404d20
add esp, 4
cmp eax, ebx
jl 0x407822
cmp dword [esp + 0x1c], 0x7ea5a6b
jne 0x407822
mov edx, dword [esp + 0x14]
mov dword [esp + 0x18], edx
push 0xc
call fcn.0042fde5
add esp, 4
cmp eax, ebx
je 0x4076eb
mov dword [eax + 4], ebx
mov dword [eax], vtable.NKZ::CInFileStream.0
mov dword [eax + 8], 0xffffffff
mov edi, eax
jmp 0x4076ed
xor edi, edi
mov dword [esp + 0x14], edi
cmp edi, ebx
je 0x4076fd
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], ebp
jae 0x407713
lea eax, [esp + 0x38]
push eax
mov esi, edi
call fcn.00405a00
cmp eax, ebx
jl 0x40783e
mov esi, dword [esp + 0x18]
cmp esi, ebx
je 0x40773f
mov edx, dword [edi]
mov eax, dword [edx + 0x10]
push ebx
push ebx
push ebx
push esi
push edi
call eax
cmp eax, ebx
jl 0x407860
push 0x18
call fcn.0042fde5
add esp, 4
cmp eax, ebx
je 0x40775a
push ebx
push esi
mov esi, eax
call fcn.00404a50
mov ebp, eax
jmp 0x40775c
xor ebp, ebp
mov dword [esp + 0x30], ebp
cmp ebp, ebx
je 0x40776d
mov ecx, dword [ebp]
mov edx, dword [ecx + 4]
push ebp
call edx
push 0x2a
lea eax, [esp + 0x54]
push ebx
push eax
mov byte [esp + 0x94], 4
call fcn.00430560
add esp, 0xc
mov eax, ebp
lea esi, [esp + 0x50]
call fcn.00405d90
cmp eax, ebx
jl 0x40787f
mov esi, dword [esp + 0x20]
cmp word [esp + 0x70], si
jne 0x4078aa
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x34]
call fcn.004057c0
mov byte [esp + 0x88], 3
cmp ebp, ebx
je 0x4077cd
mov edx, dword [ebp]
mov eax, dword [edx + 8]
push ebp
call eax
mov byte [esp + 0x88], 2
cmp edi, ebx
je 0x4077e1
mov ecx, dword [edi]
mov edx, dword [ecx + 8]
push edi
call edx
lea ecx, [esp + 0x34]
mov dword [esp + 0x88], 0xffffffff
call fcn.00405160
add esi, 0xffff
mov dword [esp + 0x20], esi
cmp si, bx
ja 0x4075f0
jmp 0x407920
cmp dword [esp + 0x4c], 8
jb 0x407920
mov eax, dword [esp + 0x38]
push eax
jmp 0x407918
cmp dword [esp + 0x4c], ebp
jb 0x4078e1
mov ecx, dword [esp + 0x38]
push ecx
call fcn.0042f8dc
add esp, 4
jmp 0x4078e1
mov byte [esp + 0x88], 2
cmp edi, ebx
je 0x407852
mov edx, dword [edi]
mov eax, dword [edx + 8]
push edi
call eax
lea ecx, [esp + 0x34]
call fcn.00405160
jmp 0x4078e1
mov byte [esp + 0x88], 2
cmp edi, ebx
je 0x407874
mov ecx, dword [edi]
mov edx, dword [ecx + 8]
push edi
call edx
lea ecx, [esp + 0x34]
call fcn.00405160
jmp 0x4078e1
mov byte [esp + 0x88], 3
cmp ebp, ebx
je 0x407894
mov eax, dword [ebp]
mov ecx, dword [eax + 8]
push ebp
call ecx
mov byte [esp + 0x88], 2
cmp edi, ebx
je 0x4078d3
mov edx, dword [edi]
mov eax, dword [edx + 8]
push edi
call eax
jmp 0x4078d3
mov byte [esp + 0x88], 3
cmp ebp, ebx
je 0x4078bf
mov ecx, dword [ebp]
mov edx, dword [ecx + 8]
push ebp
call edx
mov byte [esp + 0x88], 2
cmp edi, ebx
je 0x4078d3
mov eax, dword [edi]
mov ecx, dword [eax + 8]
push edi
call ecx
lea ecx, [esp + 0x34]
call fcn.00405160
mov ebp, 8
xor edx, edx
mov dword [esp + 0x4c], 7
mov dword [esp + 0x48], ebx
mov word [esp + 0x38], dx
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x34]
push eax
mov dword [esp + 0x8c], 5
call fcn.00406420
cmp dword [esp + 0x4c], ebp
jb 0x407920
mov ecx, dword [esp + 0x38]
push ecx
call fcn.0042f8dc
add esp, 4
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x2c]
mov dword [edx], eax
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.0043039d
add esp, 0x78
ret 8