Function at 0x459660
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xdc
mov eax, dword [0x5246a8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
xor ecx, ecx
push 0xb
mov word [ebp - 0x74], cx
push 0x4ec988
lea ecx, [ebp - 0x74]
mov dword [ebp - 0xd8], eax
mov byte [ebp - 0xd1], 0
mov dword [ebp - 0x60], 7
mov dword [ebp - 0x64], 0
call fcn.00406040
xor edx, edx
push 0xffffffffffffffff
push edx
push esi
lea ecx, [ebp - 0x20]
mov dword [ebp - 0xc], 7
mov dword [ebp - 0x10], 0
mov word [ebp - 0x20], dx
call fcn.004066a0
push 1
push 0x4e9370
lea ecx, [ebp - 0x20]
call fcn.0040d610
push 0xffffffffffffffff
xor esi, esi
push esi
lea eax, [ebp - 0x74]
push eax
lea ecx, [ebp - 0x20]
call fcn.0040d500
lea ecx, [ebp - 0x20]
push ecx
mov edx, ecx
push edx
call fcn.00416360
add esp, 8
test al, al
jne 0x45973d
mov edi, 8
cmp dword [ebp - 0xc], edi
jb 0x45971b
mov eax, dword [ebp - 0x20]
push eax
call fcn.00406d09
add esp, 4
mov dword [ebp - 0xc], 7
xor ecx, ecx
cmp dword [ebp - 0x60], edi
mov dword [ebp - 0x10], esi
mov word [ebp - 0x20], cx
jb 0x459b1a
mov edx, dword [ebp - 0x74]
push edx
jmp 0x459b12
cmp dword [ebp - 0xc], 8
mov eax, dword [ebp - 0x20]
jae 0x459749
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x459705
lea ecx, [ebp - 0x3c]
push ecx
xor eax, eax
push ebx
mov dword [ebp - 0x28], 7
mov dword [ebp - 0x2c], esi
mov word [ebp - 0x3c], ax
call fcn.00416360
add esp, 8
test al, al
jne 0x4597ba
mov edi, 8
cmp dword [ebp - 0x28], edi
jb 0x45978b
mov edx, dword [ebp - 0x3c]
push edx
call fcn.00406d09
add esp, 4
xor eax, eax
mov ebx, 7
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], esi
mov word [ebp - 0x3c], ax
cmp dword [ebp - 0xc], edi
jb 0x4597ad
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.00406d09
add esp, 4
xor edx, edx
cmp dword [ebp - 0x60], edi
mov dword [ebp - 0xc], ebx
jmp 0x459b05
lea ecx, [ebp - 0x20]
push ecx
push ebx
call fcn.0045b070
add esp, 8
test al, al
jne 0x45981f
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x3c]
push eax
call fcn.0045b070
add esp, 8
test al, al
jne 0x45981f
mov edi, 8
cmp dword [ebp - 0x28], edi
jb 0x4597f5
mov ecx, dword [ebp - 0x3c]
push ecx
call fcn.00406d09
add esp, 4
xor edx, edx
mov ebx, 7
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], esi
mov word [ebp - 0x3c], dx
cmp dword [ebp - 0xc], edi
jb 0x459817
mov eax, dword [ebp - 0x20]
push eax
call fcn.00406d09
add esp, 4
mov dword [ebp - 0xc], ebx
jmp 0x459722
push esi
lea ecx, [ebp - 0xd0]
call fcn.00405a80
push edi
lea ecx, [ebp - 0xd0]
call fcn.004062b0
lea eax, [ebp - 0x84]
push eax
lea ecx, [ebp - 0xd0]
call fcn.00408190
mov ecx, dword [eax + 4]
sub ecx, dword [eax]
mov eax, 0x92492493
imul ecx
mov eax, dword [ebp - 0x84]
add edx, ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
setne byte [ebp - 0xd2]
cmp eax, esi
je 0x459896
mov edx, dword [ebp - 0xd8]
push edx
mov edx, dword [ebp - 0x80]
lea ecx, [ebp - 0x78]
push ecx
push edx
push eax
call fcn.00406d20
mov eax, dword [ebp - 0x84]
push eax
call fcn.00406d09
add esp, 0x14
cmp byte [ebp - 0xd2], 0
lea ecx, [ebp - 0xd0]
je 0x4598ee
call fcn.0042f340
mov edi, 8
cmp dword [ebp - 0x28], edi
jb 0x4598c0
mov ecx, dword [ebp - 0x3c]
push ecx
call fcn.00406d09
add esp, 4
xor edx, edx
mov ebx, 7
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], esi
mov word [ebp - 0x3c], dx
cmp dword [ebp - 0xc], edi
jb 0x459817
mov eax, dword [ebp - 0x20]
push eax
call fcn.00406d09
add esp, 4
mov dword [ebp - 0xc], ebx
jmp 0x459722
lea eax, [ebp - 0x90]
push eax
call fcn.0040fcb0
push 0xffffffffffffffff
xor ecx, ecx
push esi
mov word [ebp - 0x58], cx
mov edi, 7
push eax
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x48], esi
call fcn.004066a0
lea ecx, [ebp - 0x90]
call fcn.00406f50
lea edx, [ebp - 0x58]
push ebx
push edx
call fcn.0045b070
add esp, 8
test al, al
jne 0x4599af
lea eax, [ebp - 0x74]
push eax
lea ecx, [ebp - 0x58]
push ecx
call fcn.0045b070
add esp, 8
test al, al
jne 0x4599af
mov ebx, 8
cmp dword [ebp - 0x44], ebx
jb 0x45995d
mov edx, dword [ebp - 0x58]
push edx
call fcn.00406d09
add esp, 4
xor eax, eax
lea ecx, [ebp - 0xd0]
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x48], esi
mov word [ebp - 0x58], ax
call fcn.0042f340
cmp dword [ebp - 0x28], ebx
jb 0x459985
mov ecx, dword [ebp - 0x3c]
push ecx
call fcn.00406d09
add esp, 4
xor edx, edx
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x2c], esi
mov word [ebp - 0x3c], dx
cmp dword [ebp - 0xc], ebx
jb 0x4599a2
mov eax, dword [ebp - 0x20]
push eax
call fcn.00406d09
add esp, 4
xor ecx, ecx
cmp dword [ebp - 0x60], ebx
mov dword [ebp - 0xc], edi
jmp 0x459727
mov eax, dword [ebp - 0x9c]
cmp eax, 1
ja 0x459aa2
cmp eax, esi
jbe 0x459a89
lea ecx, [ebp - 0xa4]
push ecx
lea ecx, [ebp - 0x84]
call fcn.0044d8c0
mov eax, dword [ebp - 0x80]
mov ebx, dword [eax]
mov dword [ebp - 0xdc], ebx
cmp ebx, eax
je 0x459a67
mov edi, 0x10
cmp dword [ebx + 0x20], edi
lea esi, [ebx + 0xc]
jb 0x4599fc
mov eax, dword [esi]
jmp 0x4599fe
mov eax, esi
push 0x4ec984
push eax
call fcn.004b7a07
add esp, 8
test eax, eax
je 0x459a2d
cmp dword [esi + 0x14], edi
jb 0x459a17
mov esi, dword [esi]
push 0x4ec980
push esi
call fcn.004b7a07
add esp, 8
test eax, eax
jne 0x459b31
mov edx, dword [ebx + 0x38]
push 0
lea ecx, [ebx + 0x28]
push 0x4e696c
push edx
push 0
call fcn.004071f0
test eax, eax
jne 0x459b31
lea ecx, [ebp - 0xdc]
call fcn.0044c7f0
mov ebx, dword [ebp - 0xdc]
mov eax, dword [ebp - 0x80]
cmp ebx, eax
jne 0x4599f0
xor esi, esi
lea edi, [esi + 7]
mov ecx, dword [eax]
push eax
push ecx
lea eax, [ebp - 0xdc]
push eax
lea ecx, [ebp - 0x84]
call fcn.0042f410
mov ecx, dword [ebp - 0x80]
push ecx
call fcn.00406d09
add esp, 4
mov ecx, dword [ebp - 0xd8]
push 0xffffffffffffffff
push esi
lea edx, [ebp - 0x20]
push edx
call fcn.004066a0
mov byte [ebp - 0xd1], 1
mov ebx, 8
cmp dword [ebp - 0x44], ebx
jb 0x459ab8
mov eax, dword [ebp - 0x58]
push eax
call fcn.00406d09
add esp, 4
xor ecx, ecx
mov word [ebp - 0x58], cx
lea ecx, [ebp - 0xd0]
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x48], esi
call fcn.0042f340
cmp dword [ebp - 0x28], ebx
jb 0x459ae0
mov edx, dword [ebp - 0x3c]
push edx
call fcn.00406d09
add esp, 4
xor eax, eax
mov word [ebp - 0x3c], ax
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], edi
cmp dword [ebp - 0xc], ebx
jb 0x459afd
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.00406d09
add esp, 4
xor edx, edx
cmp dword [ebp - 0x60], ebx
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x10], esi
mov word [ebp - 0x20], dx
jb 0x459b1a
mov eax, dword [ebp - 0x74]
push eax
call fcn.00406d09
add esp, 4
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0xd1]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401306
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x80]
mov ecx, dword [eax]
push eax
push ecx
lea eax, [ebp - 0xd8]
push eax
lea ecx, [ebp - 0x84]
call fcn.0042f410
mov ecx, dword [ebp - 0x80]
push ecx
call fcn.00406d09
mov esi, 8
add esp, 4
cmp dword [ebp - 0x44], esi
jb 0x459b6c
mov edx, dword [ebp - 0x58]
push edx
call fcn.00406d09
add esp, 4
xor eax, eax
mov edi, 7
xor ebx, ebx
lea ecx, [ebp - 0xd0]
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x48], ebx
mov word [ebp - 0x58], ax
call fcn.0042f340
cmp dword [ebp - 0x28], esi
jb 0x459b9b
mov ecx, dword [ebp - 0x3c]
push ecx
call fcn.00406d09
add esp, 4
xor edx, edx
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x2c], ebx
mov word [ebp - 0x3c], dx
cmp dword [ebp - 0xc], esi
jb 0x459bb8
mov eax, dword [ebp - 0x20]
push eax
call fcn.00406d09
add esp, 4
xor ecx, ecx
cmp dword [ebp - 0x60], esi
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x10], ebx
jmp 0x45972a