Function at 0x417160
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x585293
mov eax, dword fs:[0]
push eax
sub esp, 0x364
mov eax, dword [0x60c044]
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 dword [ebp - 0x36c], ecx
push 6
xor eax, eax
mov dword [ebp - 0x148], 7
push 0x601e84
lea ecx, [ebp - 0x15c]
mov dword [ebp - 0x14c], 0
mov word [ebp - 0x15c], ax
call fcn.00403620
mov dword [ebp - 4], 0
mov dword [ebp - 0x100], 0xf
mov dword [ebp - 0x104], 0
mov byte [ebp - 0x114], 0
mov dword [ebp - 0xe8], 0xf
mov dword [ebp - 0xec], 0
mov byte [ebp - 0xfc], 0
mov dword [ebp - 0xe4], 0
mov dword [ebp - 0xe0], 0
mov dword [ebp - 0xdc], 0
push 1
push 0x603a24
lea ecx, [ebp - 0x114]
mov byte [ebp - 4], 1
call fcn.0041a2a0
lea eax, [ebp - 0x15c]
push eax
lea eax, [ebp - 0x12c]
push eax
call fcn.00429c08
add esp, 8
mov esi, eax
lea eax, [ebp - 0xfc]
cmp eax, esi
je 0x41729b
mov eax, dword [ebp - 0xe8]
cmp eax, 0x10
jb 0x417274
inc eax
lea ecx, [ebp - 0xfc]
push eax
push dword [ebp - 0xfc]
call fcn.0040fc70
push esi
lea ecx, [ebp - 0xfc]
mov dword [ebp - 0xe8], 0xf
mov dword [ebp - 0xec], 0
mov byte [ebp - 0xfc], 0
call fcn.004196a0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x118]
cmp eax, 0x10
jb 0x4172bd
inc eax
lea ecx, [ebp - 0x12c]
push eax
push dword [ebp - 0x12c]
call fcn.0040fc70
push 1
lea eax, [ebp - 0xd8]
push 0x6012d0
push eax
call fcn.004030d0
add esp, 0xc
lea ecx, [ebp - 0x350]
mov ebx, 2
call fcn.00414340
lea ecx, [ebp - 0x2d8]
mov byte [ebp - 4], 3
call fcn.00414470
mov dword [ebp - 0x278], 0x1000100
push 4
push 0x603a28
lea ecx, [ebp - 0x2a8]
mov byte [ebp - 4], 4
call fcn.00403620
cmp word [ebp - 0xd8], 0
jne 0x417320
xor ecx, ecx
jmp 0x41733f
lea ecx, [ebp - 0xd8]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x417330
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0xd8]
push eax
lea ecx, [ebp - 0x290]
call fcn.00403620
lea eax, [ebp - 0x350]
push eax
lea ecx, [ebp - 0xe4]
call fcn.00417d10
mov dword [ebp - 0x364], 0
mov dword [ebp - 0x360], 0
mov dword [ebp - 0x35c], 0
mov byte [ebp - 4], 5
cmp dword [0x61654c], 0
jne 0x4173b6
push 0x1d4
call fcn.0041b454
add esp, 4
mov dword [ebp - 0x358], eax
mov ecx, eax
mov byte [ebp - 4], 6
call fcn.00409040
mov byte [ebp - 4], 5
mov dword [0x61654c], eax
lea eax, [ebp - 0x144]
push eax
call fcn.004096b0
mov byte [ebp - 4], 7
cmp dword [0x61654c], 0
jne 0x4173f6
push 0x1d4
call fcn.0041b454
add esp, 4
mov dword [ebp - 0x358], eax
mov ecx, eax
mov byte [ebp - 4], 8
call fcn.00409040
mov byte [ebp - 4], 7
mov dword [0x61654c], eax
lea eax, [ebp - 0x18c]
push eax
call fcn.004095a0
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x364]
cmp dword [ebp - 0x130], 8
lea eax, [ebp - 0x144]
push ecx
cmovae eax, dword [ebp - 0x144]
push eax
call fcn.00416500
mov esi, dword [ebp - 0x364]
mov edi, dword [ebp - 0x360]
cmp esi, edi
je 0x4177ba
nop dword [eax + eax]
push ebx
lea eax, [ebp - 0xd8]
push 0x6012d0
push eax
call fcn.004030d0
add esp, 0xc
lea ecx, [ebp - 0x270]
inc ebx
mov dword [ebp - 0x358], ebx
call fcn.00414340
lea ecx, [ebp - 0x1f8]
mov byte [ebp - 4], 0xa
call fcn.00414470
mov dword [ebp - 0x198], 0x100
lea eax, [ebp - 0x1c8]
mov byte [ebp - 4], 0xb
cmp eax, esi
je 0x41749a
push 0xffffffffffffffff
push 0
push esi
mov ecx, eax
call fcn.00403210
push esi
lea eax, [ebp - 0x144]
push eax
lea eax, [ebp - 0x174]
push eax
call fcn.00418be0
add esp, 0xc
push str..wnpf
push eax
lea eax, [ebp - 0x12c]
mov byte [ebp - 4], 0xc
push eax
call fcn.0040fa60
add esp, 0xc
mov edi, eax
lea eax, [ebp - 0x1e0]
cmp eax, edi
je 0x41751d
mov eax, dword [ebp - 0x1cc]
cmp eax, 8
jb 0x4174f4
inc eax
lea ecx, [ebp - 0x1e0]
push eax
push dword [ebp - 0x1e0]
call fcn.00403830
xor eax, eax
mov dword [ebp - 0x1cc], 7
push edi
lea ecx, [ebp - 0x1e0]
mov dword [ebp - 0x1d0], 0
mov word [ebp - 0x1e0], ax
call fcn.00403020
mov eax, dword [ebp - 0x118]
cmp eax, 8
jb 0x41753b
inc eax
lea ecx, [ebp - 0x12c]
push eax
push dword [ebp - 0x12c]
call fcn.00403830
xor eax, eax
mov byte [ebp - 4], 0xb
mov word [ebp - 0x12c], ax
mov eax, dword [ebp - 0x160]
mov dword [ebp - 0x118], 7
mov dword [ebp - 0x11c], 0
cmp eax, 8
jb 0x41757a
inc eax
lea ecx, [ebp - 0x174]
push eax
push dword [ebp - 0x174]
call fcn.00403830
cmp dword [ebp - 0x1cc], 8
lea eax, [ebp - 0x1e0]
cmovae eax, dword [ebp - 0x1e0]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41767d
push esi
lea eax, [ebp - 0x144]
push eax
lea eax, [ebp - 0x174]
push eax
call fcn.00418be0
add esp, 0xc
push str..swnpf
push eax
lea eax, [ebp - 0x12c]
mov byte [ebp - 4], 0xe
push eax
call fcn.0040fa60
add esp, 0xc
mov edi, eax
lea eax, [ebp - 0x1e0]
cmp eax, edi
je 0x417620
mov eax, dword [ebp - 0x1cc]
cmp eax, 8
jb 0x4175f7
inc eax
lea ecx, [ebp - 0x1e0]
push eax
push dword [ebp - 0x1e0]
call fcn.00403830
xor eax, eax
mov dword [ebp - 0x1cc], 7
push edi
lea ecx, [ebp - 0x1e0]
mov dword [ebp - 0x1d0], 0
mov word [ebp - 0x1e0], ax
call fcn.00403020
mov eax, dword [ebp - 0x118]
cmp eax, 8
jb 0x41763e
inc eax
lea ecx, [ebp - 0x12c]
push eax
push dword [ebp - 0x12c]
call fcn.00403830
xor eax, eax
mov byte [ebp - 4], 0xb
mov word [ebp - 0x12c], ax
mov eax, dword [ebp - 0x160]
mov dword [ebp - 0x118], 7
mov dword [ebp - 0x11c], 0
cmp eax, 8
jb 0x41767d
inc eax
lea ecx, [ebp - 0x174]
push eax
push dword [ebp - 0x174]
call fcn.00403830
cmp word [ebp - 0xd8], 0
jne 0x41768b
xor ecx, ecx
jmp 0x4176a3
lea ecx, [ebp - 0xd8]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x417694
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0xd8]
push eax
lea ecx, [ebp - 0x1b0]
call fcn.00403620
lea eax, [ebp - 0x270]
push eax
call fcn.00415d70
mov edi, dword [ebp - 0xe0]
lea eax, [ebp - 0x270]
cmp eax, edi
jae 0x41773b
mov ebx, dword [ebp - 0xe4]
cmp ebx, eax
ja 0x41773b
mov ecx, eax
mov eax, 0x94f2095
sub ecx, ebx
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x354], eax
cmp edi, dword [ebp - 0xdc]
jne 0x41771d
push ecx
lea ecx, [ebp - 0xe4]
call fcn.004182b0
mov edi, dword [ebp - 0xe0]
mov ebx, dword [ebp - 0xe4]
mov eax, dword [ebp - 0x354]
imul eax, eax, 0xdc
mov dword [ebp - 0x354], edi
mov dword [ebp - 0x368], edi
add eax, ebx
mov byte [ebp - 4], 0x10
test edi, edi
je 0x41777d
jmp 0x41776f
cmp edi, dword [ebp - 0xdc]
jne 0x417755
push ecx
lea ecx, [ebp - 0xe4]
call fcn.004182b0
mov edi, dword [ebp - 0xe0]
mov dword [ebp - 0x368], edi
mov dword [ebp - 0x354], edi
mov byte [ebp - 4], 0x11
test edi, edi
je 0x41777d
lea eax, [ebp - 0x270]
push eax
mov ecx, edi
call fcn.00418ee0
mov edi, dword [ebp - 0xe0]
add edi, 0xdc
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x1f8]
mov dword [ebp - 0xe0], edi
call fcn.00414680
lea ecx, [ebp - 0x270]
call fcn.00414580
mov edi, dword [ebp - 0x360]
add esi, 0x18
mov ebx, dword [ebp - 0x358]
cmp esi, edi
jne 0x417440
mov ecx, dword [ebp - 0x36c]
lea eax, [ebp - 0x114]
push eax
add ecx, 0xc
call fcn.00417c10
mov eax, dword [ebp - 0x178]
cmp eax, 8
jb 0x4177ed
inc eax
lea ecx, [ebp - 0x18c]
push eax
push dword [ebp - 0x18c]
call fcn.00403830
xor eax, eax
mov dword [ebp - 0x178], 7
mov word [ebp - 0x18c], ax
mov eax, dword [ebp - 0x130]
mov dword [ebp - 0x17c], 0
cmp eax, 8
jb 0x417828
inc eax
lea ecx, [ebp - 0x144]
push eax
push dword [ebp - 0x144]
call fcn.00403830
mov esi, dword [ebp - 0x364]
xor eax, eax
mov dword [ebp - 0x130], 7
mov dword [ebp - 0x134], 0
mov word [ebp - 0x144], ax
test esi, esi
je 0x417886
push dword [ebp - 0x368]
lea eax, [ebp - 0x364]
push eax
push edi
push esi
call fcn.0040a3e0
mov ecx, dword [ebp - 0x35c]
mov eax, 0x2aaaaaab
sub ecx, esi
add esp, 0x10
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
push esi
call fcn.0040a0c0
lea ecx, [ebp - 0x2d8]
call fcn.00414680
lea ecx, [ebp - 0x350]
call fcn.00414580
lea ecx, [ebp - 0xe4]
call fcn.00418240
mov eax, dword [ebp - 0xe8]
cmp eax, 0x10
jb 0x4178c5
inc eax
lea ecx, [ebp - 0xfc]
push eax
push dword [ebp - 0xfc]
call fcn.0040fc70
mov eax, dword [ebp - 0x100]
mov dword [ebp - 0xe8], 0xf
mov dword [ebp - 0xec], 0
mov byte [ebp - 0xfc], 0
cmp eax, 0x10
jb 0x4178fe
inc eax
lea ecx, [ebp - 0x114]
push eax
push dword [ebp - 0x114]
call fcn.0040fc70
mov eax, dword [ebp - 0x148]
mov dword [ebp - 0x100], 0xf
mov dword [ebp - 0x104], 0
mov byte [ebp - 0x114], 0
cmp eax, 8
jb 0x417937
inc eax
lea ecx, [ebp - 0x15c]
push eax
push dword [ebp - 0x15c]
call fcn.00403830
mov al, 1
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.0041b443
mov esp, ebp
pop ebp
ret