Function at 0x416a80
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x4ab8a9
mov eax, dword fs:[0]
push eax
sub esp, 0x13c
mov eax, dword [0x4cc850]
xor eax, esp
mov dword [esp + 0x138], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4cc850]
xor eax, esp
push eax
lea eax, [esp + 0x150]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x160]
mov edi, ecx
mov ebx, dword [edi + 4]
cmp ebx, dword [edi + 8]
mov dword [esp + 0x2c], edi
jbe 0x416ad5
call fcn.00484029
mov dword [esp + 0x38], ebx
xor esi, esi
jmp 0x416ae0
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax + 8]
cmp dword [eax + 4], ecx
mov dword [esp + 0x28], ecx
jbe 0x416af9
call fcn.00484029
mov eax, dword [esp + 0x2c]
cmp edi, esi
je 0x416b01
cmp edi, eax
je 0x416b06
call fcn.00484029
cmp ebx, dword [esp + 0x28]
je 0x417264
cmp edi, esi
jne 0x416b19
call fcn.00484029
cmp ebx, dword [edi + 8]
jb 0x416b23
call fcn.00484029
mov ebx, dword [ebx]
push 0xffffffffffffffff
mov edi, 7
push esi
lea eax, [ebx + 0x68]
lea ecx, [esp + 0x138]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x150], edi
mov dword [esp + 0x14c], esi
mov word [esp + 0x13c], si
call fcn.00406430
mov dword [esp + 0x158], esi
push 0xffffffffffffffff
push esi
lea eax, [ebx + 0x2c]
lea ecx, [esp + 0x90]
mov dword [esp + 0xa8], edi
mov dword [esp + 0xa4], esi
mov word [esp + 0x94], si
call fcn.00406430
mov byte [esp + 0x158], 1
mov dword [esp + 0x14], vtable.CAUEnv.0
call fcn.004073f0
mov dword [esp + 0x1c], eax
mov byte [eax + 0x45], 1
mov eax, dword [esp + 0x1c]
mov dword [eax + 4], eax
mov eax, dword [esp + 0x1c]
mov dword [eax], eax
mov eax, dword [esp + 0x1c]
mov dword [eax + 8], eax
mov dword [esp + 0x20], esi
mov byte [esp + 0x158], 2
cmp dword [ebp + 0x64], 1
jne 0x416c5d
mov edx, dword [ebp + 0x6c]
mov eax, dword [ebp + 0x68]
lea ecx, [ebp + 0x90]
push ecx
mov ecx, dword [ebp + 0x58]
push edx
push ecx
add eax, 0x1c
push eax
lea edx, [esp + 0x4c]
push edx
call fcn.00453430
mov byte [esp + 0x158], 3
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 4]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00407c60
mov eax, dword [esp + 0x1c]
mov dword [eax + 4], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x20], esi
mov dword [eax], eax
mov eax, dword [esp + 0x1c]
mov dword [eax + 8], eax
mov eax, dword [esp + 0x1c]
mov edx, dword [eax]
push eax
lea ecx, [esp + 0x1c]
push ecx
push edx
mov edi, ecx
push edi
lea edx, [esp + 0x6c]
push edx
call fcn.00407240
lea ebx, [esp + 0x40]
mov eax, edi
call fcn.00406b00
mov byte [esp + 0x158], 2
mov eax, ebx
mov dword [esp + 0x3c], vtable.CAUEnv.0
call fcn.00406b70
mov ebx, dword [esp + 0x24]
cmp dword [ebp + 0x64], 2
jne 0x416ced
mov eax, dword [ebp + 0x68]
mov ecx, dword [ebp + 0x5c]
push ecx
add eax, 0x1c
push eax
lea edx, [esp + 0x54]
push edx
call fcn.00452b10
mov byte [esp + 0x158], 4
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 4]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00407c60
mov eax, dword [esp + 0x1c]
mov dword [eax + 4], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x20], esi
mov dword [eax], eax
mov eax, dword [esp + 0x1c]
mov dword [eax + 8], eax
mov eax, dword [esp + 0x1c]
mov edx, dword [eax]
push eax
lea ecx, [esp + 0x1c]
push ecx
push edx
mov edi, ecx
push edi
lea edx, [esp + 0x74]
push edx
call fcn.00407240
lea ebx, [esp + 0x50]
mov eax, edi
call fcn.00406b00
mov byte [esp + 0x158], 2
mov eax, ebx
mov dword [esp + 0x4c], vtable.CAUEnv.0
call fcn.00406b70
mov ebx, dword [esp + 0x24]
lea eax, [esp + 0x130]
push eax
lea ecx, [esp + 0x70]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00455920
push 0xffffffffffffffff
push esi
lea ecx, [esp + 0x138]
mov byte [esp + 0x160], 5
call fcn.00406430
mov edi, 8
mov byte [esp + 0x158], 2
cmp dword [esp + 0x84], edi
jb 0x416d3d
mov edx, dword [esp + 0x70]
push edx
call fcn.004692b1
add esp, 4
lea eax, [esp + 0x88]
push eax
lea ecx, [esp + 0x70]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00455920
push 0xffffffffffffffff
push esi
lea ecx, [esp + 0x90]
mov byte [esp + 0x160], 6
call fcn.00406430
mov byte [esp + 0x158], 2
cmp dword [esp + 0x84], edi
jb 0x416d88
mov edx, dword [esp + 0x70]
push edx
call fcn.004692b1
add esp, 4
lea eax, [esp + 0xdc]
push eax
mov edx, ebx
mov ecx, ebp
call fcn.00413d80
mov byte [esp + 0x158], 7
push 0xffffffffffffffff
push esi
lea eax, [ebx + 0x48]
lea ecx, [esp + 0xac]
mov dword [esp + 0xc4], 7
mov dword [esp + 0xc0], esi
mov word [esp + 0xb0], si
call fcn.00406430
lea ecx, [esp + 0xa4]
push ecx
lea edx, [esp + 0x70]
push edx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x160], 8
call fcn.00455920
push 0xffffffffffffffff
push esi
lea ecx, [esp + 0xac]
mov byte [esp + 0x160], 9
call fcn.00406430
mov byte [esp + 0x158], 8
cmp dword [esp + 0x84], edi
jb 0x416e20
mov eax, dword [esp + 0x70]
push eax
call fcn.004692b1
add esp, 4
push 0xffffffffffffffff
push esi
lea eax, [ebx + 0x8c]
lea ecx, [esp + 0xc8]
mov dword [esp + 0xe0], 7
mov dword [esp + 0xdc], esi
mov word [esp + 0xcc], si
call fcn.00406430
lea ecx, [esp + 0xc0]
push ecx
lea edx, [esp + 0x70]
push edx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x160], 0xa
call fcn.00455920
push 0xffffffffffffffff
push esi
lea ecx, [esp + 0xc8]
mov byte [esp + 0x160], 0xb
call fcn.00406430
cmp dword [esp + 0x84], edi
jb 0x416e9a
mov eax, dword [esp + 0x70]
push eax
call fcn.004692b1
add esp, 4
mov dword [esp + 0x110], 7
mov dword [esp + 0x10c], esi
mov word [esp + 0xfc], si
mov byte [esp + 0x158], 0xc
cmp dword [esp + 0xf4], edi
mov ecx, dword [esp + 0xe0]
jae 0x416ed3
lea ecx, [esp + 0xe0]
lea edx, [esp + 0xf8]
push edx
call fcn.0043ddf0
mov eax, dword [esp + 0x100]
add esp, 4
cmp dword [esp + 0x110], edi
jae 0x416efa
lea eax, [esp + 0xfc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x416f15
lea eax, [esp + 0xf8]
push eax
call fcn.0043e540
add esp, 4
cmp dword [esp + 0xa0], edi
mov eax, dword [esp + 0x8c]
jae 0x416f2c
lea eax, [esp + 0x8c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x416f47
lea ecx, [esp + 0x88]
push ecx
call fcn.0043e540
add esp, 4
cmp dword [esp + 0xd8], edi
jb 0x416f5d
mov edx, dword [esp + 0xc4]
mov dword [esp + 0x24], edx
jmp 0x416f68
lea eax, [esp + 0xc4]
mov dword [esp + 0x24], eax
cmp dword [esp + 0xbc], edi
jb 0x416f7e
mov ecx, dword [esp + 0xa8]
mov dword [esp + 0x30], ecx
jmp 0x416f89
lea edx, [esp + 0xa8]
mov dword [esp + 0x30], edx
cmp dword [esp + 0x148], edi
jb 0x416f9f
mov eax, dword [esp + 0x134]
mov dword [esp + 0x28], eax
jmp 0x416faa
lea ecx, [esp + 0x134]
mov dword [esp + 0x28], ecx
cmp dword [esp + 0xf4], edi
mov edx, dword [esp + 0xe0]
jae 0x416fc1
lea edx, [esp + 0xe0]
cmp dword [esp + 0xa0], edi
mov eax, dword [esp + 0x8c]
jae 0x416fd8
lea eax, [esp + 0x8c]
mov ecx, dword [esp + 0x164]
push ecx
mov ecx, dword [esp + 0x28]
push ecx
mov ecx, dword [ebx + 0x88]
push ecx
mov ecx, dword [esp + 0x34]
push edx
mov edx, dword [esp + 0x40]
push eax
call fcn.00417290
cmp eax, 1
jne 0x417117
cmp byte [esp + 0x164], al
jne 0x41707d
cmp dword [ebp + 0x64], eax
jne 0x41707d
mov dword [esp + 0x84], 7
mov dword [esp + 0x80], esi
mov word [esp + 0x70], si
push 0xffffffffffffffff
push esi
lea eax, [esp + 0xe4]
lea ecx, [esp + 0x74]
mov byte [esp + 0x160], 0xd
call fcn.00406430
push 0x5c
push 0x2f
lea edi, [esp + 0x74]
call fcn.00401c00
mov ecx, dword [ebp + 0xcc]
add esp, 8
mov edx, edi
call fcn.00428520
cmp dword [esp + 0x84], 8
jb 0x417078
mov edx, dword [esp + 0x70]
push edx
call fcn.004692b1
add esp, 4
mov edi, 8
cmp dword [ebp + 0x64], 2
jne 0x417117
mov dword [esp + 0x12c], 7
mov dword [esp + 0x128], esi
mov word [esp + 0x118], si
push 0xffffffffffffffff
push esi
lea eax, [esp + 0x90]
lea ecx, [esp + 0x11c]
mov byte [esp + 0x160], 0xe
call fcn.00406430
push 0x5c
push 0x2f
lea edi, [esp + 0x11c]
call fcn.00401c00
add esp, 8
mov eax, edi
push eax
mov edx, ebx
mov ecx, ebp
call fcn.0041f8a0
cmp dword [esp + 0x12c], 8
jb 0x4170f8
mov ecx, dword [esp + 0x118]
push ecx
call fcn.004692b1
add esp, 4
mov dword [esp + 0x12c], 7
mov dword [esp + 0x128], esi
mov word [esp + 0x118], si
mov edi, 8
cmp dword [esp + 0x110], edi
jb 0x417130
mov edx, dword [esp + 0xfc]
push edx
call fcn.004692b1
add esp, 4
cmp dword [esp + 0xd8], edi
mov ebx, 7
mov dword [esp + 0x110], ebx
mov dword [esp + 0x10c], esi
mov word [esp + 0xfc], si
jb 0x417164
mov eax, dword [esp + 0xc4]
push eax
call fcn.004692b1
add esp, 4
cmp dword [esp + 0xbc], edi
mov dword [esp + 0xd8], ebx
mov dword [esp + 0xd4], esi
mov word [esp + 0xc4], si
jb 0x417193
mov ecx, dword [esp + 0xa8]
push ecx
call fcn.004692b1
add esp, 4
cmp dword [esp + 0xf4], edi
mov dword [esp + 0xbc], ebx
mov dword [esp + 0xb8], esi
mov word [esp + 0xa8], si
jb 0x4171c2
mov edx, dword [esp + 0xe0]
push edx
call fcn.004692b1
add esp, 4
mov byte [esp + 0x158], 1
lea eax, [esp + 0x18]
mov dword [esp + 0xf4], ebx
mov dword [esp + 0xf0], esi
mov word [esp + 0xe0], si
mov dword [esp + 0x14], vtable.CAUEnv.0
call fcn.00406b70
cmp dword [esp + 0xa0], edi
jb 0x41720a
mov eax, dword [esp + 0x8c]
push eax
call fcn.004692b1
add esp, 4
mov dword [esp + 0x158], 0xffffffff
cmp dword [esp + 0x148], edi
mov dword [esp + 0xa0], ebx
mov dword [esp + 0x9c], esi
mov word [esp + 0x8c], si
jb 0x417244
mov ecx, dword [esp + 0x134]
push ecx
call fcn.004692b1
add esp, 4
mov edi, dword [esp + 0x2c]
mov edx, dword [esp + 0x38]
cmp edx, dword [edi + 8]
jb 0x417256
call fcn.00484029
add dword [esp + 0x38], 4
mov ebx, dword [esp + 0x38]
jmp 0x416ae0
mov ecx, dword [esp + 0x150]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x138]
xor ecx, esp
call fcn.00483bf3
add esp, 0x148
ret 8