Function at 0x410bf0
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x44f410
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x463060]
xor eax, esp
mov dword [esp + 0x68], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x463060]
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.0042be1e
add esp, 4
cmp eax, ebx
je 0x410c66
mov dword [eax + 4], ebx
or ebp, 0xffffffff
mov dword [eax], vtable.NKZ::CInFileStream.0
mov dword [eax + 8], ebp
mov edi, eax
jmp 0x410c6b
xor edi, edi
or ebp, 0xffffffff
mov dword [esp + 0x14], edi
cmp edi, ebx
je 0x410c7b
mov ecx, dword [edi]
mov edx, dword [ecx + 4]
push edi
call edx
mov dword [esp + 0x88], ebx
cmp dword [esi + 0x18], 8
jb 0x410c8d
mov esi, dword [esi + 4]
jmp 0x410c90
add esi, 4
mov eax, dword [edi + 8]
cmp eax, ebp
je 0x410ca1
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 0x410cdc
call fcn.004096e7
mov esi, eax
cmp esi, ebx
je 0x410cdc
mov dword [esp + 0x88], ebp
mov eax, dword [edi]
mov ecx, dword [eax + 8]
push edi
call ecx
mov eax, esi
jmp 0x4110e9
push 0x18
call fcn.0042be1e
add esp, 4
cmp eax, ebx
je 0x410cf7
push ebx
push ebx
mov esi, eax
call fcn.0040ea20
mov ebp, eax
jmp 0x410cf9
xor ebp, ebp
mov dword [esp + 0x1c], ebp
cmp ebp, ebx
je 0x410d0a
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.0042e560
add esp, 0xc
mov eax, ebp
lea esi, [esp + 0x50]
call fcn.0040f520
mov esi, eax
cmp esi, ebx
je 0x410d61
mov byte [esp + 0x88], bl
cmp ebp, ebx
je 0x410d47
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 0x4110e9
movzx esi, word [esp + 0x70]
mov byte [esp + 0x88], bl
cmp ebp, ebx
je 0x410d7a
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 0x410d9c
mov eax, 0x80004005
jmp 0x4110e9
dec esi
movzx esi, si
mov dword [esp + 0x18], ebx
mov dword [esp + 0x20], esi
cmp si, bx
jbe 0x4110dd
jmp 0x410dc4
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.0040fef0
test eax, eax
je 0x410fe3
mov ebp, 8
cmp si, 1
jne 0x410e95
mov eax, dword [esp + 0x38]
cmp dword [esp + 0x4c], ebp
jae 0x410e15
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x410e50
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x38]
mov dword [esp + 0x18], 0x2e
call fcn.00403782
push 0xffffffffffffffff
mov edi, eax
lea esi, [esp + 0x38]
call fcn.004023f3
push str..exe
mov ecx, esi
push ecx
call fcn.0040174a
mov eax, dword [esp + 0x38]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], ebx
cmp dword [esp + 0x4c], ebp
jae 0x410e66
lea eax, [esp + 0x38]
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x20]
call fcn.0040ecd0
add esp, 4
cmp eax, ebx
jl 0x41100c
cmp dword [esp + 0x1c], 0x7ea5a6b
jne 0x41100c
mov eax, dword [esp + 0x14]
mov dword [esp + 0x18], eax
push 0xc
call fcn.0042be1e
add esp, 4
cmp eax, ebx
je 0x410eb7
mov dword [eax + 4], ebx
mov dword [eax], vtable.NKZ::CInFileStream.0
mov dword [eax + 8], 0xffffffff
mov edi, eax
jmp 0x410eb9
xor edi, edi
mov dword [esp + 0x14], edi
cmp edi, ebx
je 0x410ec9
mov ecx, dword [edi]
mov edx, dword [ecx + 4]
push edi
call edx
mov byte [esp + 0x88], 3
mov eax, dword [esp + 0x38]
cmp dword [esp + 0x4c], ebp
jae 0x410edf
lea eax, [esp + 0x38]
push eax
mov esi, edi
call fcn.0040f1a0
cmp eax, ebx
jl 0x410ff8
mov esi, dword [esp + 0x18]
cmp esi, ebx
je 0x410f0b
mov eax, dword [edi]
mov ecx, dword [eax + 0x10]
push ebx
push ebx
push ebx
push esi
push edi
call ecx
cmp eax, ebx
jl 0x410ff8
push 0x18
call fcn.0042be1e
add esp, 4
cmp eax, ebx
je 0x410f26
push ebx
push esi
mov esi, eax
call fcn.0040ea20
mov ebp, eax
jmp 0x410f28
xor ebp, ebp
mov dword [esp + 0x30], ebp
cmp ebp, ebx
je 0x410f39
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], 4
call fcn.0042e560
add esp, 0xc
mov eax, ebp
lea esi, [esp + 0x50]
call fcn.0040f520
cmp eax, ebx
jl 0x411025
mov esi, dword [esp + 0x20]
cmp word [esp + 0x70], si
jne 0x41105c
mov ecx, dword [esp + 0x28]
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x3c]
call fcn.004025ff
mov byte [esp + 0x88], 3
cmp ebp, ebx
je 0x410f98
mov edx, dword [ebp]
mov eax, dword [edx + 8]
push ebp
call eax
mov byte [esp + 0x88], 2
cmp edi, ebx
je 0x410fac
mov ecx, dword [edi]
mov edx, dword [ecx + 8]
push edi
call edx
mov dword [esp + 0x88], 0xffffffff
cmp dword [esp + 0x4c], 8
jb 0x410fcb
mov eax, dword [esp + 0x38]
push eax
call fcn.0042bd6c
add esp, 4
add esi, 0xffff
mov dword [esp + 0x20], esi
cmp si, bx
ja 0x410dc0
jmp 0x4110dd
cmp dword [esp + 0x4c], 8
jb 0x4110dd
mov ecx, dword [esp + 0x38]
push ecx
jmp 0x4110d5
mov byte [esp + 0x88], 2
cmp edi, ebx
je 0x41100c
mov eax, dword [edi]
mov ecx, dword [eax + 8]
push edi
call ecx
cmp dword [esp + 0x4c], ebp
jb 0x41109e
mov edx, dword [esp + 0x38]
push edx
call fcn.0042bd6c
add esp, 4
jmp 0x41109e
mov byte [esp + 0x88], 3
cmp ebp, ebx
je 0x41103a
mov eax, dword [ebp]
mov ecx, dword [eax + 8]
push ebp
call ecx
mov byte [esp + 0x88], 2
cmp edi, ebx
je 0x41104e
mov edx, dword [edi]
mov eax, dword [edx + 8]
push edi
call eax
cmp dword [esp + 0x4c], 8
jb 0x411099
mov ecx, dword [esp + 0x38]
push ecx
jmp 0x411091
mov byte [esp + 0x88], 3
cmp ebp, ebx
je 0x411071
mov edx, dword [ebp]
mov eax, dword [edx + 8]
push ebp
call eax
mov byte [esp + 0x88], 2
cmp edi, ebx
je 0x411085
mov ecx, dword [edi]
mov edx, dword [ecx + 8]
push edi
call edx
cmp dword [esp + 0x4c], 8
jb 0x411099
mov eax, dword [esp + 0x38]
push eax
call fcn.0042bd6c
add esp, 4
mov ebp, 8
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], 5
call fcn.0040fbf0
cmp dword [esp + 0x4c], ebp
jb 0x4110dd
mov eax, dword [esp + 0x38]
push eax
call fcn.0042bd6c
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.0042bd77
add esp, 0x78
ret 8