Function at 0x417570
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x575688
mov eax, dword fs:[0]
push eax
sub esp, 0x12c
mov eax, dword [0x5e10a4]
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, ecx
mov dword [ebp - 0x128], ebx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x138], eax
lea eax, [ebx + 0x10]
push eax
mov dword [ebp - 0x12c], eax
lea eax, [ebp - 0x88]
push eax
mov dword [ebp - 0x120], 0
call fcn.0043626f
cmp dword [ebp - 0x74], 8
lea eax, [ebp - 0x88]
mov dword [ebp - 4], 0
cmovae eax, dword [ebp - 0x88]
push eax
lea eax, [ebp - 0xb8]
push eax
call fcn.004371c9
cmp dword [ebp - 0xa4], 8
lea eax, [ebp - 0xb8]
mov byte [ebp - 4], 1
cmovae eax, dword [ebp - 0xb8]
push eax
lea eax, [ebp - 0xe8]
push eax
call fcn.0043715f
lea eax, [ebp - 0xe8]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.00436506
cmp dword [ebp - 0x74], 8
lea eax, [ebp - 0x88]
mov byte [ebp - 4], 3
cmovae eax, dword [ebp - 0x88]
push eax
lea eax, [ebp - 0xd0]
push eax
call fcn.004357bc
lea eax, [ebp - 0xd0]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00436506
add esp, 0x30
mov esi, dword [ebx]
mov byte [ebp - 4], 5
cmp esi, dword [ebx + 4]
je 0x41779c
cmp dword [esi + 0x14], 0x10
jb 0x41767f
mov edx, dword [esi]
jmp 0x417681
mov edx, esi
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
cmp byte [edx], 0
jne 0x41769c
xor ecx, ecx
jmp 0x4176aa
mov ecx, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4176a1
sub ecx, edi
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.00408b80
cmp dword [ebp - 0x44], 0x10
lea ecx, [ebp - 0x58]
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x58]
cmp dword [ebp - 0x14], 0x10
mov ebx, dword [ebp - 0x28]
mov edi, dword [ebp - 0x48]
cmovae edx, ebx
cmp eax, edi
cmovb edi, eax
mov eax, dword [ebp - 0x14]
test edi, edi
je 0x417736
sub edi, 4
jb 0x4176f4
mov eax, dword [edx]
cmp eax, dword [ecx]
jne 0x4176f9
add edx, 4
add ecx, 4
sub edi, 4
jae 0x4176e3
cmp edi, 0xfffffffc
je 0x41772d
mov al, byte [edx]
cmp al, byte [ecx]
jne 0x417726
cmp edi, 0xfffffffd
je 0x41772d
mov al, byte [edx + 1]
cmp al, byte [ecx + 1]
jne 0x417726
cmp edi, 0xfffffffe
je 0x41772d
mov al, byte [edx + 2]
cmp al, byte [ecx + 2]
jne 0x417726
cmp edi, 0xffffffff
je 0x41772d
mov al, byte [edx + 3]
cmp al, byte [ecx + 3]
je 0x41772d
sbb eax, eax
or eax, 1
jmp 0x41772f
xor eax, eax
test eax, eax
jne 0x417746
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x48]
mov edx, dword [ebp - 0x18]
cmp edx, ecx
jb 0x417746
jbe 0x4178d8
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x41778a
inc eax
cmp eax, 0x1000
jb 0x417781
test byte [ebp - 0x28], 0x1f
jne 0x4178eb
mov eax, dword [ebx - 4]
cmp eax, ebx
jae 0x4178eb
sub ebx, eax
cmp ebx, 4
jb 0x4178eb
cmp ebx, 0x23
ja 0x4178eb
mov ebx, eax
push ebx
call fcn.0042711d
add esp, 4
mov eax, dword [ebp - 0x128]
add esi, 0x18
cmp esi, dword [eax + 4]
jne 0x417675
xor esi, esi
mov eax, dword [ebp - 0x44]
cmp eax, 0x10
jb 0x4177b3
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.004090b0
mov eax, dword [ebp - 0xbc]
mov dword [ebp - 0x44], 0xf
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x58], 0
cmp eax, 8
jb 0x4177e3
inc eax
lea ecx, [ebp - 0xd0]
push eax
push dword [ebp - 0xd0]
call fcn.00409050
xor eax, eax
mov dword [ebp - 0xbc], 7
mov word [ebp - 0xd0], ax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0xc0], 0
cmp eax, 0x10
jb 0x417815
inc eax
lea ecx, [ebp - 0x70]
push eax
push dword [ebp - 0x70]
call fcn.004090b0
mov eax, dword [ebp - 0xd4]
mov dword [ebp - 0x5c], 0xf
mov dword [ebp - 0x60], 0
mov byte [ebp - 0x70], 0
cmp eax, 8
jb 0x417845
inc eax
lea ecx, [ebp - 0xe8]
push eax
push dword [ebp - 0xe8]
call fcn.00409050
xor eax, eax
mov dword [ebp - 0xd4], 7
mov word [ebp - 0xe8], ax
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0xd8], 0
cmp eax, 8
jb 0x417880
inc eax
lea ecx, [ebp - 0xb8]
push eax
push dword [ebp - 0xb8]
call fcn.00409050
xor eax, eax
mov dword [ebp - 0xa4], 7
mov word [ebp - 0xb8], ax
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0xa8], 0
cmp eax, 8
jb 0x4178b8
inc eax
lea ecx, [ebp - 0x88]
push eax
push dword [ebp - 0x88]
call fcn.00409050
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.004273c3
mov esp, ebp
pop ebp
ret 0xc
cmp eax, 0x10
jb 0x41791d
inc eax
cmp eax, 0x1000
jb 0x417914
test byte [ebp - 0x28], 0x1f
je 0x4178f0
call fcn.00442951
mov eax, dword [ebx - 4]
cmp eax, ebx
jb 0x4178fc
call fcn.00442951
sub ebx, eax
cmp ebx, 4
jae 0x417908
call fcn.00442951
cmp ebx, 0x23
jbe 0x417912
call fcn.00442951
mov ebx, eax
push ebx
call fcn.0042711d
add esp, 4
sub esp, 0x18
mov ecx, esp
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 8
jb 0x41793a
mov eax, dword [ecx]
jmp 0x41793c
mov eax, ecx
xor edx, edx
push 0xffffffffffffffff
mov word [eax], dx
lea eax, [ebp - 0xb8]
push edx
push eax
call fcn.004091c0
mov esi, dword [ebp - 0x138]
lea eax, [ebp - 0xa0]
mov ebx, dword [ebp - 0x128]
mov ecx, ebx
push esi
push eax
call fcn.004173e0
cmp dword [ebp + 0xc], 0
mov byte [ebp - 4], 6
je 0x417a16
cmp dword [ebx + 0xb0], 0
je 0x4179a9
push 1
lea eax, [ebp - 0xa0]
push eax
sub esp, 0x18
lea ecx, [ebx + 0x10]
mov eax, esp
push ecx
push eax
call fcn.0043626f
mov ecx, dword [ebx + 0xb0]
add esp, 8
push esi
call fcn.00414980
cmp dword [ebp - 0x8c], 8
lea eax, [ebp - 0xa0]
cmovae eax, dword [ebp - 0xa0]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x417d03
lea eax, [ebp - 0x120]
push eax
sub esp, 0x18
mov ecx, esp
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 8
jb 0x4179f0
mov eax, dword [ecx]
jmp 0x4179f2
mov eax, ecx
xor edx, edx
push 0xffffffffffffffff
mov word [eax], dx
lea eax, [ebp - 0xa0]
push edx
push eax
call fcn.004091c0
call fcn.00436d81
add esp, 0x1c
mov dword [ebx + 0x64], eax
jmp 0x417d03
mov ecx, dword [ebp - 0x12c]
push 0xffffffffffffffff
push 0
push ecx
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
call fcn.00408c80
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 7
push eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.00408c80
lea eax, [ebp - 0x118]
mov byte [ebp - 4], 8
push str.71014254046657390858154269443030
push eax
call fcn.004369ba
mov esi, eax
lea eax, [ebp - 0x100]
mov byte [ebp - 4], 9
push str.11523310100662004206465130071965
push eax
call fcn.004369ba
push esi
push eax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0xa
push eax
call fcn.00435f56
mov eax, dword [ebp - 0xec]
add esp, 0x1c
mov byte [ebp - 4], 9
cmp eax, 0x10
jb 0x417af3
mov ecx, dword [ebp - 0x100]
inc eax
cmp eax, 0x1000
jb 0x417aea
test cl, 0x1f
je 0x417ac6
call fcn.00442951
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x417ad2
call fcn.00442951
sub ecx, eax
cmp ecx, 4
jae 0x417ade
call fcn.00442951
cmp ecx, 0x23
jbe 0x417ae8
call fcn.00442951
mov ecx, eax
push ecx
call fcn.0042711d
add esp, 4
mov eax, dword [ebp - 0x104]
mov dword [ebp - 0xec], 0xf
mov dword [ebp - 0xf0], 0
mov byte [ebp - 0x100], 0
mov byte [ebp - 4], 8
cmp eax, 0x10
jb 0x417b62
mov ecx, dword [ebp - 0x118]
inc eax
cmp eax, 0x1000
jb 0x417b59
test cl, 0x1f
je 0x417b35
call fcn.00442951
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x417b41
call fcn.00442951
sub ecx, eax
cmp ecx, 4
jae 0x417b4d
call fcn.00442951
cmp ecx, 0x23
jbe 0x417b57
call fcn.00442951
mov ecx, eax
push ecx
call fcn.0042711d
add esp, 4
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
mov edi, dword [ebp - 0x18]
lea edx, [ebp - 0x40]
cmovae ecx, dword [ebp - 0x28]
mov esi, edi
cmp dword [ebp - 0x2c], 0x10
mov ebx, dword [ebp - 0x30]
cmovae edx, dword [ebp - 0x40]
cmp ebx, edi
cmovb esi, ebx
test esi, esi
je 0x417be0
sub esi, 4
jb 0x417ba1
nop
mov eax, dword [edx]
cmp eax, dword [ecx]
jne 0x417ba6
add edx, 4
add ecx, 4
sub esi, 4
jae 0x417b90
cmp esi, 0xfffffffc
je 0x417bda
mov al, byte [edx]
cmp al, byte [ecx]
jne 0x417bd3
cmp esi, 0xfffffffd
je 0x417bda
mov al, byte [edx + 1]
cmp al, byte [ecx + 1]
jne 0x417bd3
cmp esi, 0xfffffffe
je 0x417bda
mov al, byte [edx + 2]
cmp al, byte [ecx + 2]
jne 0x417bd3
cmp esi, 0xffffffff
je 0x417bda
mov al, byte [edx + 3]
cmp al, byte [ecx + 3]
je 0x417bda
sbb eax, eax
or eax, 1
jmp 0x417bdc
xor eax, eax
test eax, eax
jne 0x417c1f
cmp ebx, edi
jb 0x417c1f
ja 0x417c1f
sub esp, 0x18
mov ecx, esp
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 0x10
jb 0x417c03
mov eax, dword [ecx]
jmp 0x417c05
mov eax, ecx
push 0xffffffffffffffff
push 0
push dword [ebp - 0x12c]
mov byte [eax], 0
call fcn.00408c80
mov ebx, dword [ebp - 0x128]
jmp 0x417c90
sub esp, 0x18
mov ecx, esp
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 0x10
jb 0x417c3c
mov eax, dword [ecx]
jmp 0x417c3e
mov eax, ecx
push 0xffffffffffffffff
mov byte [eax], 0
lea eax, [ebp - 0x40]
push 0
push eax
call fcn.00408c80
mov ebx, dword [ebp - 0x128]
mov ecx, ebx
call fcn.004170c0
mov dword [ebp - 0x120], eax
test eax, eax
jne 0x417ca5
sub esp, 0x18
mov ecx, esp
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], eax
cmp dword [ecx + 0x14], 0x10
jb 0x417c7e
mov eax, dword [ecx]
jmp 0x417c80
mov eax, ecx
push 0xffffffffffffffff
mov byte [eax], 0
lea eax, [ebp - 0x28]
push 0
push eax
call fcn.00408c80
mov ecx, ebx
call fcn.004170c0
mov dword [ebp - 0x120], eax
test eax, eax
jne 0x417ca5
push 1
jmp 0x417ca7
push 2
cmp dword [ebp - 0x5c], 0x10
lea eax, [ebp - 0x70]
cmovae eax, dword [ebp - 0x70]
push eax
push 1
push 1
call fcn.004158c0
mov ecx, eax
call fcn.004237e0
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x417cd8
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.004090b0
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
mov byte [ebp - 4], 6
cmp eax, 0x10
jb 0x417d03
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.004090b0
cmp dword [ebp - 0x120], 0
jne 0x417d13
xor esi, esi
jmp 0x417daa
lea ecx, [ebp - 0x119]
mov dword [ebp - 0x130], 0
mov dword [ebp - 0x134], 0
call fcn.00409910
lea eax, [ebx + 0x40]
mov byte [ebp - 4], 0xb
push eax
lea eax, [ebp - 0x134]
push eax
lea eax, [ebp - 0x130]
push eax
push dword [ebp - 0x120]
lea ecx, [ebp - 0x119]
push dword [ebx + 0x64]
call fcn.004188d0
mov ecx, dword [ebp - 0x130]
test ecx, ecx
je 0x417d7e
mov eax, dword [ebp - 0x134]
test eax, eax
je 0x417d7e
push eax
push ecx
call fcn.0041a7d0
add esp, 8
mov esi, eax
jmp 0x417d9f
cmp dword [ebp - 0x74], 8
lea eax, [ebp - 0x88]
cmovae eax, dword [ebp - 0x88]
push eax
push 0x89
call fcn.00433eb0
add esp, 8
xor esi, esi
lea ecx, [ebp - 0x119]
call fcn.00408920
mov eax, dword [ebp - 0x8c]
cmp eax, 8
jb 0x417dc8
inc eax
lea ecx, [ebp - 0xa0]
push eax
push dword [ebp - 0xa0]
call fcn.00409050
xor eax, eax
mov dword [ebp - 0x8c], 7
mov dword [ebp - 0x90], 0
mov word [ebp - 0xa0], ax
jmp 0x41779e