Function at 0x411870
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x450c90
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x4650e0]
xor eax, esp
mov dword [esp + 0x68], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4650e0]
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.0042cb6e
add esp, 4
cmp eax, ebx
je 0x4118e6
mov dword [eax + 4], ebx
or ebp, 0xffffffff
mov dword [eax], vtable.NKZ::CInFileStream.0
mov dword [eax + 8], ebp
mov edi, eax
jmp 0x4118eb
xor edi, edi
or ebp, 0xffffffff
mov dword [esp + 0x14], edi
cmp edi, ebx
je 0x4118fb
mov ecx, dword [edi]
mov edx, dword [ecx + 4]
push edi
call edx
mov dword [esp + 0x88], ebx
cmp dword [esi + 0x18], 8
jb 0x41190d
mov esi, dword [esi + 4]
jmp 0x411910
add esi, 4
mov eax, dword [edi + 8]
cmp eax, ebp
je 0x411921
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 0x41195c
call fcn.0040a3ee
mov esi, eax
cmp esi, ebx
je 0x41195c
mov dword [esp + 0x88], ebp
mov eax, dword [edi]
mov ecx, dword [eax + 8]
push edi
call ecx
mov eax, esi
jmp 0x411d69
push 0x18
call fcn.0042cb6e
add esp, 4
cmp eax, ebx
je 0x411977
push ebx
push ebx
mov esi, eax
call fcn.0040f6a0
mov ebp, eax
jmp 0x411979
xor ebp, ebp
mov dword [esp + 0x1c], ebp
cmp ebp, ebx
je 0x41198a
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.0042f410
add esp, 0xc
mov eax, ebp
lea esi, [esp + 0x50]
call fcn.004101a0
mov esi, eax
cmp esi, ebx
je 0x4119e1
mov byte [esp + 0x88], bl
cmp ebp, ebx
je 0x4119c7
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 0x411d69
movzx esi, word [esp + 0x70]
mov byte [esp + 0x88], bl
cmp ebp, ebx
je 0x4119fa
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 0x411a1c
mov eax, 0x80004005
jmp 0x411d69
dec esi
movzx esi, si
mov dword [esp + 0x18], ebx
mov dword [esp + 0x20], esi
cmp si, bx
jbe 0x411d5d
jmp 0x411a44
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.00410b70
test eax, eax
je 0x411c63
mov ebp, 8
cmp si, 1
jne 0x411b15
mov eax, dword [esp + 0x38]
cmp dword [esp + 0x4c], ebp
jae 0x411a95
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x411ad0
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x38]
mov dword [esp + 0x18], 0x2e
call fcn.004037ce
push 0xffffffffffffffff
mov edi, eax
lea esi, [esp + 0x38]
call fcn.0040244c
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 0x411ae6
lea eax, [esp + 0x38]
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x20]
call fcn.0040f920
add esp, 4
cmp eax, ebx
jl 0x411c8c
cmp dword [esp + 0x1c], 0x7ea5a6b
jne 0x411c8c
mov eax, dword [esp + 0x14]
mov dword [esp + 0x18], eax
push 0xc
call fcn.0042cb6e
add esp, 4
cmp eax, ebx
je 0x411b37
mov dword [eax + 4], ebx
mov dword [eax], vtable.NKZ::CInFileStream.0
mov dword [eax + 8], 0xffffffff
mov edi, eax
jmp 0x411b39
xor edi, edi
mov dword [esp + 0x14], edi
cmp edi, ebx
je 0x411b49
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 0x411b5f
lea eax, [esp + 0x38]
push eax
mov esi, edi
call fcn.0040fe20
cmp eax, ebx
jl 0x411c78
mov esi, dword [esp + 0x18]
cmp esi, ebx
je 0x411b8b
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 0x411c78
push 0x18
call fcn.0042cb6e
add esp, 4
cmp eax, ebx
je 0x411ba6
push ebx
push esi
mov esi, eax
call fcn.0040f6a0
mov ebp, eax
jmp 0x411ba8
xor ebp, ebp
mov dword [esp + 0x30], ebp
cmp ebp, ebx
je 0x411bb9
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.0042f410
add esp, 0xc
mov eax, ebp
lea esi, [esp + 0x50]
call fcn.004101a0
cmp eax, ebx
jl 0x411ca5
mov esi, dword [esp + 0x20]
cmp word [esp + 0x70], si
jne 0x411cdc
mov ecx, dword [esp + 0x28]
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x3c]
call fcn.00402658
mov byte [esp + 0x88], 3
cmp ebp, ebx
je 0x411c18
mov edx, dword [ebp]
mov eax, dword [edx + 8]
push ebp
call eax
mov byte [esp + 0x88], 2
cmp edi, ebx
je 0x411c2c
mov ecx, dword [edi]
mov edx, dword [ecx + 8]
push edi
call edx
mov dword [esp + 0x88], 0xffffffff
cmp dword [esp + 0x4c], 8
jb 0x411c4b
mov eax, dword [esp + 0x38]
push eax
call fcn.0042cabc
add esp, 4
add esi, 0xffff
mov dword [esp + 0x20], esi
cmp si, bx
ja 0x411a40
jmp 0x411d5d
cmp dword [esp + 0x4c], 8
jb 0x411d5d
mov ecx, dword [esp + 0x38]
push ecx
jmp 0x411d55
mov byte [esp + 0x88], 2
cmp edi, ebx
je 0x411c8c
mov eax, dword [edi]
mov ecx, dword [eax + 8]
push edi
call ecx
cmp dword [esp + 0x4c], ebp
jb 0x411d1e
mov edx, dword [esp + 0x38]
push edx
call fcn.0042cabc
add esp, 4
jmp 0x411d1e
mov byte [esp + 0x88], 3
cmp ebp, ebx
je 0x411cba
mov eax, dword [ebp]
mov ecx, dword [eax + 8]
push ebp
call ecx
mov byte [esp + 0x88], 2
cmp edi, ebx
je 0x411cce
mov edx, dword [edi]
mov eax, dword [edx + 8]
push edi
call eax
cmp dword [esp + 0x4c], 8
jb 0x411d19
mov ecx, dword [esp + 0x38]
push ecx
jmp 0x411d11
mov byte [esp + 0x88], 3
cmp ebp, ebx
je 0x411cf1
mov edx, dword [ebp]
mov eax, dword [edx + 8]
push ebp
call eax
mov byte [esp + 0x88], 2
cmp edi, ebx
je 0x411d05
mov ecx, dword [edi]
mov edx, dword [ecx + 8]
push edi
call edx
cmp dword [esp + 0x4c], 8
jb 0x411d19
mov eax, dword [esp + 0x38]
push eax
call fcn.0042cabc
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.00410870
cmp dword [esp + 0x4c], ebp
jb 0x411d5d
mov eax, dword [esp + 0x38]
push eax
call fcn.0042cabc
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.0042cac7
add esp, 0x78
ret 8