Function at 0x416580
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58405d
mov eax, dword fs:[0]
push eax
sub esp, 0x284
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 - 0x28c], ecx
push 2
xor eax, eax
mov dword [ebp - 0x148], 7
push 0x600cbc
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 0x602860
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 0x4166bb
mov eax, dword [ebp - 0xe8]
cmp eax, 0x10
jb 0x416694
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 eax, dword [ebp - 0x118]
cmp eax, 0x10
jb 0x4166d9
inc eax
lea ecx, [ebp - 0x12c]
push eax
push dword [ebp - 0x12c]
call fcn.0040f830
mov dword [ebp - 0x284], 0
mov dword [ebp - 0x280], 0
mov dword [ebp - 0x27c], 0
mov byte [ebp - 4], 3
cmp dword [0x61554c], 0
jne 0x41672b
push 0x1d4
call fcn.0041aff4
add esp, 4
mov dword [ebp - 0x278], eax
mov ecx, eax
mov byte [ebp - 4], 4
call fcn.00408c00
mov byte [ebp - 4], 3
mov dword [0x61554c], eax
lea eax, [ebp - 0x144]
push eax
call fcn.00409380
mov byte [ebp - 4], 5
cmp dword [0x61554c], 0
jne 0x41676b
push 0x1d4
call fcn.0041aff4
add esp, 4
mov dword [ebp - 0x278], eax
mov ecx, eax
mov byte [ebp - 4], 6
call fcn.00408c00
mov byte [ebp - 4], 5
mov dword [0x61554c], eax
lea eax, [ebp - 0x18c]
push eax
call fcn.00409160
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x284]
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 - 0x284]
mov ebx, 1
mov edi, dword [ebp - 0x280]
cmp esi, edi
je 0x416b3a
nop word [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 - 0x278], ebx
call fcn.00413ee0
lea ecx, [ebp - 0x1f8]
mov byte [ebp - 4], 8
call fcn.00414010
mov dword [ebp - 0x198], 0x100
lea eax, [ebp - 0x1c8]
mov byte [ebp - 4], 9
cmp eax, esi
je 0x41681a
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], 0xa
push eax
call fcn.0040f620
add esp, 0xc
mov edi, eax
lea eax, [ebp - 0x1e0]
cmp eax, edi
je 0x41689d
mov eax, dword [ebp - 0x1cc]
cmp eax, 8
jb 0x416874
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 0x4168bb
inc eax
lea ecx, [ebp - 0x12c]
push eax
push dword [ebp - 0x12c]
call fcn.00403400
xor eax, eax
mov byte [ebp - 4], 9
mov word [ebp - 0x12c], ax
mov eax, dword [ebp - 0x160]
mov dword [ebp - 0x118], 7
mov dword [ebp - 0x11c], 0
cmp eax, 8
jb 0x4168fa
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 0x4169fd
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], 0xc
push eax
call fcn.0040f620
add esp, 0xc
mov edi, eax
lea eax, [ebp - 0x1e0]
cmp eax, edi
je 0x4169a0
mov eax, dword [ebp - 0x1cc]
cmp eax, 8
jb 0x416977
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 0x4169be
inc eax
lea ecx, [ebp - 0x12c]
push eax
push dword [ebp - 0x12c]
call fcn.00403400
xor eax, eax
mov byte [ebp - 4], 9
mov word [ebp - 0x12c], ax
mov eax, dword [ebp - 0x160]
mov dword [ebp - 0x118], 7
mov dword [ebp - 0x11c], 0
cmp eax, 8
jb 0x4169fd
inc eax
lea ecx, [ebp - 0x174]
push eax
push dword [ebp - 0x174]
call fcn.00403400
cmp word [ebp - 0xd8], 0
jne 0x416a0b
xor ecx, ecx
jmp 0x416a23
lea ecx, [ebp - 0xd8]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x416a14
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 0x416abb
mov ebx, dword [ebp - 0xe4]
cmp ebx, eax
ja 0x416abb
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 - 0x274], eax
cmp edi, dword [ebp - 0xdc]
jne 0x416a9d
push ecx
lea ecx, [ebp - 0xe4]
call fcn.00417e50
mov edi, dword [ebp - 0xe0]
mov ebx, dword [ebp - 0xe4]
mov eax, dword [ebp - 0x274]
imul eax, eax, 0xdc
mov dword [ebp - 0x274], edi
mov dword [ebp - 0x288], edi
add eax, ebx
mov byte [ebp - 4], 0xe
test edi, edi
je 0x416afd
jmp 0x416aef
cmp edi, dword [ebp - 0xdc]
jne 0x416ad5
push ecx
lea ecx, [ebp - 0xe4]
call fcn.00417e50
mov edi, dword [ebp - 0xe0]
mov dword [ebp - 0x288], edi
mov dword [ebp - 0x274], edi
mov byte [ebp - 4], 0xf
test edi, edi
je 0x416afd
lea eax, [ebp - 0x270]
push eax
mov ecx, edi
call fcn.00418a80
mov edi, dword [ebp - 0xe0]
add edi, 0xdc
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x1f8]
mov dword [ebp - 0xe0], edi
call fcn.00414220
lea ecx, [ebp - 0x270]
call fcn.00414120
mov edi, dword [ebp - 0x280]
add esi, 0x18
mov ebx, dword [ebp - 0x278]
cmp esi, edi
jne 0x4167c0
mov ebx, dword [ebp - 0x28c]
lea eax, [ebp - 0x114]
lea esi, [ebx + 0x54]
cmp esi, eax
je 0x416b59
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.00419ac0
lea ecx, [esi + 0x18]
lea eax, [ebp - 0xfc]
cmp ecx, eax
je 0x416b70
push 0xffffffffffffffff
push 0
push eax
call fcn.00419ac0
lea eax, [ebp - 0xe4]
push eax
lea ecx, [esi + 0x30]
call fcn.00417970
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebx + 0xc]
call fcn.004177b0
mov eax, dword [ebp - 0x178]
cmp eax, 8
jb 0x416bac
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 0x416be7
inc eax
lea ecx, [ebp - 0x144]
push eax
push dword [ebp - 0x144]
call fcn.00403400
mov esi, dword [ebp - 0x284]
xor eax, eax
mov dword [ebp - 0x130], 7
mov dword [ebp - 0x134], 0
mov word [ebp - 0x144], ax
test esi, esi
je 0x416c45
push dword [ebp - 0x288]
lea eax, [ebp - 0x284]
push eax
push edi
push esi
call fcn.00409fa0
mov ecx, dword [ebp - 0x27c]
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 - 0xe4]
call fcn.00417de0
mov eax, dword [ebp - 0xe8]
cmp eax, 0x10
jb 0x416c6e
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 0x416ca7
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 0x416ce0
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