Function at 0x466a20
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x503071
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x569078]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov esi, ecx
mov dword [ebp - 0x80], esi
mov eax, dword [ebp + 8]
mov ecx, ebx
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x58]
push eax
mov dword [ebp - 0x84], esi
mov dword [ebp - 0x78], 0
call fcn.00467040
mov dword [ebp - 4], 1
cmp dword [eax + 0x14], 8
mov dword [ebp - 0x78], 1
jb 0x466a86
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x466a99
mov byte [ebp - 0x71], al
cmp dword [ebx + 0x10], eax
jne 0x466a9d
mov byte [ebp - 0x71], 1
mov dword [ebp - 4], 0
mov edi, 1
mov dword [ebp - 0x78], edi
and edi, 0xfffffffe
mov dword [ebp - 0x78], edi
mov eax, dword [ebp - 0x44]
cmp eax, 8
jb 0x466b0b
mov ecx, dword [ebp - 0x58]
inc eax
cmp eax, 0x7fffffff
jbe 0x466aca
call fcn.004d1161
add eax, eax
cmp eax, 0x1000
jb 0x466b02
test byte [ebp - 0x58], 0x1f
je 0x466ade
call fcn.004d1161
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x466aea
call fcn.004d1161
sub ecx, eax
cmp ecx, 4
jae 0x466af6
call fcn.004d1161
cmp ecx, 0x23
jbe 0x466b00
call fcn.004d1161
mov ecx, eax
push ecx
call fcn.004cb6d5
add esp, 4
xor eax, eax
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
cmp byte [ebp - 0x71], al
je 0x466b4e
push 0xffffffffffffffff
push eax
mov dword [esi + 0x14], 7
mov ecx, esi
mov dword [esi + 0x10], eax
push ebx
mov word [esi], ax
call fcn.0040496b
mov dword [ebp - 4], 0
or edi, 2
mov dword [ebp - 0x78], edi
jmp 0x466df6
lea eax, [ebp - 0x70]
mov ecx, ebx
push eax
call fcn.00466fd0
mov dword [ebp - 4], 4
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
mov byte [ebp - 4], 7
lea eax, [ebp - 0x58]
push eax
mov ecx, ebx
call fcn.00467480
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x40]
push ecx
mov edx, eax
lea ecx, [ebp - 0x28]
call fcn.00466a20
add esp, 4
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0x44]
cmp eax, 8
jb 0x466c03
mov ecx, dword [ebp - 0x58]
inc eax
cmp eax, 0x7fffffff
jbe 0x466bc2
call fcn.004d1161
add eax, eax
cmp eax, 0x1000
jb 0x466bfa
test byte [ebp - 0x58], 0x1f
je 0x466bd6
call fcn.004d1161
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x466be2
call fcn.004d1161
sub ecx, eax
cmp ecx, 4
jae 0x466bee
call fcn.004d1161
cmp ecx, 0x23
jbe 0x466bf8
call fcn.004d1161
mov ecx, eax
push ecx
call fcn.004cb6d5
add esp, 4
xor eax, eax
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
lea ecx, [ebp - 0x40]
lea eax, [ebp - 0x70]
mov dword [ebp - 0x48], 0
push eax
call fcn.00425c19
mov eax, dword [ebp - 0x7c]
lea ecx, [ebp - 0x40]
cmp eax, ecx
je 0x466c39
push 0xffffffffffffffff
push 0
push ecx
mov ecx, eax
call fcn.0040496b
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jae 0x466c71
mov eax, dword [ebp - 0x18]
add eax, 1
je 0x466c7d
add eax, eax
push eax
lea eax, [ebp - 0x28]
push eax
push esi
call fcn.004ccf50
mov ecx, dword [ebp - 0x14]
add esp, 0xc
jmp 0x466c7d
mov eax, dword [ebp - 0x28]
mov dword [esi], eax
mov dword [ebp - 0x28], 0
mov eax, dword [ebp - 0x18]
mov dword [esi + 0x10], eax
xor eax, eax
mov dword [esi + 0x14], ecx
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov byte [ebp - 4], 0xa
or edi, 2
mov dword [ebp - 0x78], edi
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x466d01
mov ecx, dword [ebp - 0x28]
inc eax
cmp eax, 0x7fffffff
jbe 0x466cc0
call fcn.004d1161
add eax, eax
cmp eax, 0x1000
jb 0x466cf8
test byte [ebp - 0x28], 0x1f
je 0x466cd4
call fcn.004d1161
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x466ce0
call fcn.004d1161
sub ecx, eax
cmp ecx, 4
jae 0x466cec
call fcn.004d1161
cmp ecx, 0x23
jbe 0x466cf6
call fcn.004d1161
mov ecx, eax
push ecx
call fcn.004cb6d5
add esp, 4
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x466d72
mov ecx, dword [ebp - 0x40]
inc eax
cmp eax, 0x7fffffff
jbe 0x466d31
call fcn.004d1161
add eax, eax
cmp eax, 0x1000
jb 0x466d69
test byte [ebp - 0x40], 0x1f
je 0x466d45
call fcn.004d1161
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x466d51
call fcn.004d1161
sub ecx, eax
cmp ecx, 4
jae 0x466d5d
call fcn.004d1161
cmp ecx, 0x23
jbe 0x466d67
call fcn.004d1161
mov ecx, eax
push ecx
call fcn.004cb6d5
add esp, 4
xor eax, eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
mov byte [ebp - 4], al
mov eax, dword [ebp - 0x5c]
cmp eax, 8
jb 0x466de2
mov ecx, dword [ebp - 0x70]
inc eax
cmp eax, 0x7fffffff
jbe 0x466da1
call fcn.004d1161
add eax, eax
cmp eax, 0x1000
jb 0x466dd9
test byte [ebp - 0x70], 0x1f
je 0x466db5
call fcn.004d1161
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x466dc1
call fcn.004d1161
sub ecx, eax
cmp ecx, 4
jae 0x466dcd
call fcn.004d1161
cmp ecx, 0x23
jbe 0x466dd7
call fcn.004d1161
mov ecx, eax
push ecx
call fcn.004cb6d5
add esp, 4
xor eax, eax
mov dword [ebp - 0x5c], 7
mov dword [ebp - 0x60], 0
mov word [ebp - 0x70], ax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004cb6da
mov esp, ebp
pop ebp
ret