Function at 0x4072d0
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x452b80
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x4646fc]
xor eax, esp
mov dword [esp + 0x68], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4646fc]
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.0043acb6
add esp, 4
cmp eax, ebp
je 0x407346
mov dword [eax + 4], ebp
or ebx, 0xffffffff
mov dword [eax], vtable.NKZ::CInFileStream.0
mov dword [eax + 8], ebx
mov edi, eax
jmp 0x40734b
xor edi, edi
or ebx, 0xffffffff
mov dword [esp + 0x14], edi
cmp edi, ebp
je 0x40735b
mov ecx, dword [edi]
mov edx, dword [ecx + 4]
push edi
call edx
mov dword [esp + 0x88], ebp
cmp dword [esi + 0x18], 8
jb 0x40736d
mov esi, dword [esi + 4]
jmp 0x407370
add esi, 4
mov eax, dword [edi + 8]
cmp eax, ebx
je 0x407381
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 0x4073bc
call fcn.00404bc0
mov esi, eax
cmp esi, ebp
je 0x4073bc
mov dword [esp + 0x88], ebx
mov eax, dword [edi]
mov ecx, dword [eax + 8]
push edi
call ecx
mov eax, esi
jmp 0x407792
push 0x18
call fcn.0043acb6
add esp, 4
cmp eax, ebp
je 0x4073d7
push ebp
push ebp
mov esi, eax
call fcn.00404920
mov ebx, eax
jmp 0x4073d9
xor ebx, ebx
mov dword [esp + 0x1c], ebx
cmp ebx, ebp
je 0x4073e9
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.0043af50
add esp, 0xc
mov eax, ebx
lea esi, [esp + 0x50]
call fcn.00405be0
mov esi, eax
cmp esi, ebp
je 0x407440
mov byte [esp + 0x88], 0
cmp ebx, ebp
je 0x407426
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 0x407792
movzx esi, word [esp + 0x70]
mov byte [esp + 0x88], 0
cmp ebx, ebp
je 0x407459
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 0x40747b
mov eax, 0x80004005
jmp 0x407792
dec esi
movzx esi, si
mov dword [esp + 0x18], ebp
mov dword [esp + 0x20], esi
cmp si, bp
jbe 0x407786
jmp 0x407496
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.004065d0
test eax, eax
je 0x4076a7
cmp si, 1
jne 0x407564
mov eax, dword [esp + 0x38]
mov esi, 8
cmp dword [esp + 0x4c], esi
jae 0x4074e7
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40751f
lea edi, [esp + 0x14]
lea ebx, [esp + 0x34]
mov dword [esp + 0x14], 0x2e
call fcn.00408350
push 0xffffffffffffffff
push eax
mov ecx, ebx
call fcn.004052e0
push str..exe
mov ecx, ebx
call fcn.004081b0
xor ebp, ebp
mov eax, dword [esp + 0x38]
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x14], ebp
cmp dword [esp + 0x4c], esi
jae 0x407535
lea eax, [esp + 0x38]
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x20]
call fcn.00404be0
add esp, 4
cmp eax, ebp
jl 0x4076bc
cmp dword [esp + 0x1c], 0x7ea5a6b
jne 0x4076bc
mov edx, dword [esp + 0x14]
mov dword [esp + 0x18], edx
push 0xc
call fcn.0043acb6
add esp, 4
cmp eax, ebp
je 0x407586
mov dword [eax + 4], ebp
mov dword [eax], vtable.NKZ::CInFileStream.0
mov dword [eax + 8], 0xffffffff
mov edi, eax
jmp 0x407588
xor edi, edi
mov dword [esp + 0x14], edi
cmp edi, ebp
je 0x407598
mov eax, dword [edi]
mov ecx, dword [eax + 4]
push edi
call ecx
mov byte [esp + 0x88], 3
cmp dword [esp + 0x4c], 8
mov eax, dword [esp + 0x38]
jae 0x4075af
lea eax, [esp + 0x38]
push eax
mov esi, edi
call fcn.00405860
cmp eax, ebp
jl 0x4076ff
mov esi, dword [esp + 0x18]
cmp esi, ebp
je 0x4075db
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 0x4076d5
push 0x18
call fcn.0043acb6
add esp, 4
cmp eax, ebp
je 0x4075f6
push ebp
push esi
mov esi, eax
call fcn.00404920
mov ebx, eax
jmp 0x4075f8
xor ebx, ebx
mov dword [esp + 0x30], ebx
cmp ebx, ebp
je 0x407608
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.0043af50
add esp, 0xc
mov eax, ebx
lea esi, [esp + 0x50]
call fcn.00405be0
cmp eax, ebp
jl 0x4076eb
mov esi, dword [esp + 0x20]
cmp word [esp + 0x70], si
jne 0x407715
push 0xffffffffffffffff
push ebp
lea ecx, [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x34]
call fcn.00405600
mov byte [esp + 0x88], 3
cmp ebx, ebp
je 0x407667
mov edx, dword [ebx]
mov eax, dword [edx + 8]
push ebx
call eax
mov byte [esp + 0x88], 2
cmp edi, ebp
je 0x40767b
mov ecx, dword [edi]
mov edx, dword [ecx + 8]
push edi
call edx
lea ecx, [esp + 0x34]
mov dword [esp + 0x88], 0xffffffff
call fcn.00405000
add esi, 0xffff
mov dword [esp + 0x20], esi
cmp si, bp
ja 0x407492
jmp 0x407786
cmp dword [esp + 0x4c], 8
jb 0x407786
mov eax, dword [esp + 0x38]
push eax
jmp 0x40777e
cmp dword [esp + 0x4c], esi
jb 0x407746
mov ecx, dword [esp + 0x38]
push ecx
call fcn.0043a44b
add esp, 4
jmp 0x407746
mov byte [esp + 0x88], 2
cmp edi, ebp
je 0x40773d
mov ecx, dword [edi]
mov edx, dword [ecx + 8]
push edi
call edx
jmp 0x40773d
mov byte [esp + 0x88], 3
cmp ebx, ebp
je 0x4076ff
mov eax, dword [ebx]
mov ecx, dword [eax + 8]
push ebx
call ecx
mov byte [esp + 0x88], 2
cmp edi, ebp
je 0x40773d
mov edx, dword [edi]
mov eax, dword [edx + 8]
push edi
call eax
jmp 0x40773d
mov byte [esp + 0x88], 3
cmp ebx, ebp
je 0x407729
mov ecx, dword [ebx]
mov edx, dword [ecx + 8]
push ebx
call edx
mov byte [esp + 0x88], 2
cmp edi, ebp
je 0x40773d
mov eax, dword [edi]
mov ecx, dword [eax + 8]
push edi
call ecx
lea ecx, [esp + 0x34]
call fcn.00405000
xor edx, edx
mov dword [esp + 0x4c], 7
mov dword [esp + 0x48], ebp
mov word [esp + 0x38], dx
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x34]
push eax
mov dword [esp + 0x8c], 5
call fcn.004062d0
cmp dword [esp + 0x4c], 8
jb 0x407786
mov ecx, dword [esp + 0x38]
push ecx
call fcn.0043a44b
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.0043a83c
add esp, 0x78
ret 8