Function at 0x416d00
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x584173
mov eax, dword fs:[0]
push eax
sub esp, 0x364
mov eax, dword [0x60b044]
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 0x600cc4
lea ecx, [ebp - 0x15c]
mov dword [ebp - 0x14c], 0
mov word [ebp - 0x15c], ax
call fcn.004031f0
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 0x602864
lea ecx, [ebp - 0x114]
mov byte [ebp - 4], 1
call fcn.00419e40
lea eax, [ebp - 0x15c]
push eax
lea eax, [ebp - 0x12c]
push eax
call fcn.00428af7
add esp, 8
mov esi, eax
lea eax, [ebp - 0xfc]
cmp eax, esi
je 0x416e3b
mov eax, dword [ebp - 0xe8]
cmp eax, 0x10
jb 0x416e14
inc eax
lea ecx, [ebp - 0xfc]
push eax
push dword [ebp - 0xfc]
call fcn.0040f830
push esi
lea ecx, [ebp - 0xfc]
mov dword [ebp - 0xe8], 0xf
mov dword [ebp - 0xec], 0
mov byte [ebp - 0xfc], 0
call fcn.00419240
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x118]
cmp eax, 0x10
jb 0x416e5d
inc eax
lea ecx, [ebp - 0x12c]
push eax
push dword [ebp - 0x12c]
call fcn.0040f830
push 1
lea eax, [ebp - 0xd8]
push 0x600110
push eax
call fcn.00402ca0
add esp, 0xc
lea ecx, [ebp - 0x350]
mov ebx, 2
call fcn.00413ee0
lea ecx, [ebp - 0x2d8]
mov byte [ebp - 4], 3
call fcn.00414010
mov dword [ebp - 0x278], 0x1000100
push 4
push 0x602868
lea ecx, [ebp - 0x2a8]
mov byte [ebp - 4], 4
call fcn.004031f0
cmp word [ebp - 0xd8], 0
jne 0x416ec0
xor ecx, ecx
jmp 0x416edf
lea ecx, [ebp - 0xd8]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x416ed0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0xd8]
push eax
lea ecx, [ebp - 0x290]
call fcn.004031f0
lea eax, [ebp - 0x350]
push eax
lea ecx, [ebp - 0xe4]
call fcn.004178b0
mov dword [ebp - 0x364], 0
mov dword [ebp - 0x360], 0
mov dword [ebp - 0x35c], 0
mov byte [ebp - 4], 5
cmp dword [0x61554c], 0
jne 0x416f56
push 0x1d4
call fcn.0041aff4
add esp, 4
mov dword [ebp - 0x358], eax
mov ecx, eax
mov byte [ebp - 4], 6
call fcn.00408c00
mov byte [ebp - 4], 5
mov dword [0x61554c], eax
lea eax, [ebp - 0x144]
push eax
call fcn.00409270
mov byte [ebp - 4], 7
cmp dword [0x61554c], 0
jne 0x416f96
push 0x1d4
call fcn.0041aff4
add esp, 4
mov dword [ebp - 0x358], eax
mov ecx, eax
mov byte [ebp - 4], 8
call fcn.00408c00
mov byte [ebp - 4], 7
mov dword [0x61554c], eax
lea eax, [ebp - 0x18c]
push eax
call fcn.00409160
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.004160a0
mov esi, dword [ebp - 0x364]
mov edi, dword [ebp - 0x360]
cmp esi, edi
je 0x41735a
nop dword [eax + eax]
push ebx
lea eax, [ebp - 0xd8]
push 0x600110
push eax
call fcn.00402ca0
add esp, 0xc
lea ecx, [ebp - 0x270]
inc ebx
mov dword [ebp - 0x358], ebx
call fcn.00413ee0
lea ecx, [ebp - 0x1f8]
mov byte [ebp - 4], 0xa
call fcn.00414010
mov dword [ebp - 0x198], 0x100
lea eax, [ebp - 0x1c8]
mov byte [ebp - 4], 0xb
cmp eax, esi
je 0x41703a
push 0xffffffffffffffff
push 0
push esi
mov ecx, eax
call fcn.00402de0
push esi
lea eax, [ebp - 0x144]
push eax
lea eax, [ebp - 0x174]
push eax
call fcn.00418780
add esp, 0xc
push str..wnpf
push eax
lea eax, [ebp - 0x12c]
mov byte [ebp - 4], 0xc
push eax
call fcn.0040f620
add esp, 0xc
mov edi, eax
lea eax, [ebp - 0x1e0]
cmp eax, edi
je 0x4170bd
mov eax, dword [ebp - 0x1cc]
cmp eax, 8
jb 0x417094
inc eax
lea ecx, [ebp - 0x1e0]
push eax
push dword [ebp - 0x1e0]
call fcn.00403400
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.00402bf0
mov eax, dword [ebp - 0x118]
cmp eax, 8
jb 0x4170db
inc eax
lea ecx, [ebp - 0x12c]
push eax
push dword [ebp - 0x12c]
call fcn.00403400
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 0x41711a
inc eax
lea ecx, [ebp - 0x174]
push eax
push dword [ebp - 0x174]
call fcn.00403400
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 0x41721d
push esi
lea eax, [ebp - 0x144]
push eax
lea eax, [ebp - 0x174]
push eax
call fcn.00418780
add esp, 0xc
push str..swnpf
push eax
lea eax, [ebp - 0x12c]
mov byte [ebp - 4], 0xe
push eax
call fcn.0040f620
add esp, 0xc
mov edi, eax
lea eax, [ebp - 0x1e0]
cmp eax, edi
je 0x4171c0
mov eax, dword [ebp - 0x1cc]
cmp eax, 8
jb 0x417197
inc eax
lea ecx, [ebp - 0x1e0]
push eax
push dword [ebp - 0x1e0]
call fcn.00403400
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.00402bf0
mov eax, dword [ebp - 0x118]
cmp eax, 8
jb 0x4171de
inc eax
lea ecx, [ebp - 0x12c]
push eax
push dword [ebp - 0x12c]
call fcn.00403400
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 0x41721d
inc eax
lea ecx, [ebp - 0x174]
push eax
push dword [ebp - 0x174]
call fcn.00403400
cmp word [ebp - 0xd8], 0
jne 0x41722b
xor ecx, ecx
jmp 0x417243
lea ecx, [ebp - 0xd8]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x417234
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0xd8]
push eax
lea ecx, [ebp - 0x1b0]
call fcn.004031f0
lea eax, [ebp - 0x270]
push eax
call fcn.00415910
mov edi, dword [ebp - 0xe0]
lea eax, [ebp - 0x270]
cmp eax, edi
jae 0x4172db
mov ebx, dword [ebp - 0xe4]
cmp ebx, eax
ja 0x4172db
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 0x4172bd
push ecx
lea ecx, [ebp - 0xe4]
call fcn.00417e50
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 0x41731d
jmp 0x41730f
cmp edi, dword [ebp - 0xdc]
jne 0x4172f5
push ecx
lea ecx, [ebp - 0xe4]
call fcn.00417e50
mov edi, dword [ebp - 0xe0]
mov dword [ebp - 0x368], edi
mov dword [ebp - 0x354], edi
mov byte [ebp - 4], 0x11
test edi, edi
je 0x41731d
lea eax, [ebp - 0x270]
push eax
mov ecx, edi
call fcn.00418a80
mov edi, dword [ebp - 0xe0]
add edi, 0xdc
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x1f8]
mov dword [ebp - 0xe0], edi
call fcn.00414220
lea ecx, [ebp - 0x270]
call fcn.00414120
mov edi, dword [ebp - 0x360]
add esi, 0x18
mov ebx, dword [ebp - 0x358]
cmp esi, edi
jne 0x416fe0
mov ecx, dword [ebp - 0x36c]
lea eax, [ebp - 0x114]
push eax
add ecx, 0xc
call fcn.004177b0
mov eax, dword [ebp - 0x178]
cmp eax, 8
jb 0x41738d
inc eax
lea ecx, [ebp - 0x18c]
push eax
push dword [ebp - 0x18c]
call fcn.00403400
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 0x4173c8
inc eax
lea ecx, [ebp - 0x144]
push eax
push dword [ebp - 0x144]
call fcn.00403400
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 0x417426
push dword [ebp - 0x368]
lea eax, [ebp - 0x364]
push eax
push edi
push esi
call fcn.00409fa0
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.00409c80
lea ecx, [ebp - 0x2d8]
call fcn.00414220
lea ecx, [ebp - 0x350]
call fcn.00414120
lea ecx, [ebp - 0xe4]
call fcn.00417de0
mov eax, dword [ebp - 0xe8]
cmp eax, 0x10
jb 0x417465
inc eax
lea ecx, [ebp - 0xfc]
push eax
push dword [ebp - 0xfc]
call fcn.0040f830
mov eax, dword [ebp - 0x100]
mov dword [ebp - 0xe8], 0xf
mov dword [ebp - 0xec], 0
mov byte [ebp - 0xfc], 0
cmp eax, 0x10
jb 0x41749e
inc eax
lea ecx, [ebp - 0x114]
push eax
push dword [ebp - 0x114]
call fcn.0040f830
mov eax, dword [ebp - 0x148]
mov dword [ebp - 0x100], 0xf
mov dword [ebp - 0x104], 0
mov byte [ebp - 0x114], 0
cmp eax, 8
jb 0x4174d7
inc eax
lea ecx, [ebp - 0x15c]
push eax
push dword [ebp - 0x15c]
call fcn.00403400
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.0041afe3
mov esp, ebp
pop ebp
ret