Function at 0x4597a0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xdc
mov eax, dword [0x5256a8]
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 0x4ed988
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.00406030
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.00406690
push 1
push 0x4ea370
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 0x45987d
mov edi, 8
cmp dword [ebp - 0xc], edi
jb 0x45985b
mov eax, dword [ebp - 0x20]
push eax
call fcn.00406cf9
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 0x459c5a
mov edx, dword [ebp - 0x74]
push edx
jmp 0x459c52
cmp dword [ebp - 0xc], 8
mov eax, dword [ebp - 0x20]
jae 0x459889
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x459845
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 0x4598fa
mov edi, 8
cmp dword [ebp - 0x28], edi
jb 0x4598cb
mov edx, dword [ebp - 0x3c]
push edx
call fcn.00406cf9
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 0x4598ed
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.00406cf9
add esp, 4
xor edx, edx
cmp dword [ebp - 0x60], edi
mov dword [ebp - 0xc], ebx
jmp 0x459c45
lea ecx, [ebp - 0x20]
push ecx
push ebx
call fcn.0045b1d0
add esp, 8
test al, al
jne 0x45995f
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x3c]
push eax
call fcn.0045b1d0
add esp, 8
test al, al
jne 0x45995f
mov edi, 8
cmp dword [ebp - 0x28], edi
jb 0x459935
mov ecx, dword [ebp - 0x3c]
push ecx
call fcn.00406cf9
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 0x459957
mov eax, dword [ebp - 0x20]
push eax
call fcn.00406cf9
add esp, 4
mov dword [ebp - 0xc], ebx
jmp 0x459862
push esi
lea ecx, [ebp - 0xd0]
call fcn.00405a70
push edi
lea ecx, [ebp - 0xd0]
call fcn.004062a0
lea eax, [ebp - 0x84]
push eax
lea ecx, [ebp - 0xd0]
call fcn.00408180
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 0x4599d6
mov edx, dword [ebp - 0xd8]
push edx
mov edx, dword [ebp - 0x80]
lea ecx, [ebp - 0x78]
push ecx
push edx
push eax
call fcn.00406d10
mov eax, dword [ebp - 0x84]
push eax
call fcn.00406cf9
add esp, 0x14
cmp byte [ebp - 0xd2], 0
lea ecx, [ebp - 0xd0]
je 0x459a2e
call fcn.0042f340
mov edi, 8
cmp dword [ebp - 0x28], edi
jb 0x459a00
mov ecx, dword [ebp - 0x3c]
push ecx
call fcn.00406cf9
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 0x459957
mov eax, dword [ebp - 0x20]
push eax
call fcn.00406cf9
add esp, 4
mov dword [ebp - 0xc], ebx
jmp 0x459862
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.00406690
lea ecx, [ebp - 0x90]
call fcn.00406f40
lea edx, [ebp - 0x58]
push ebx
push edx
call fcn.0045b1d0
add esp, 8
test al, al
jne 0x459aef
lea eax, [ebp - 0x74]
push eax
lea ecx, [ebp - 0x58]
push ecx
call fcn.0045b1d0
add esp, 8
test al, al
jne 0x459aef
mov ebx, 8
cmp dword [ebp - 0x44], ebx
jb 0x459a9d
mov edx, dword [ebp - 0x58]
push edx
call fcn.00406cf9
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 0x459ac5
mov ecx, dword [ebp - 0x3c]
push ecx
call fcn.00406cf9
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 0x459ae2
mov eax, dword [ebp - 0x20]
push eax
call fcn.00406cf9
add esp, 4
xor ecx, ecx
cmp dword [ebp - 0x60], ebx
mov dword [ebp - 0xc], edi
jmp 0x459867
mov eax, dword [ebp - 0x9c]
cmp eax, 1
ja 0x459be2
cmp eax, esi
jbe 0x459bc9
lea ecx, [ebp - 0xa4]
push ecx
lea ecx, [ebp - 0x84]
call fcn.0044d9b0
mov eax, dword [ebp - 0x80]
mov ebx, dword [eax]
mov dword [ebp - 0xdc], ebx
cmp ebx, eax
je 0x459ba7
mov edi, 0x10
cmp dword [ebx + 0x20], edi
lea esi, [ebx + 0xc]
jb 0x459b3c
mov eax, dword [esi]
jmp 0x459b3e
mov eax, esi
push 0x4ed984
push eax
call fcn.004b79a7
add esp, 8
test eax, eax
je 0x459b6d
cmp dword [esi + 0x14], edi
jb 0x459b57
mov esi, dword [esi]
push 0x4ed980
push esi
call fcn.004b79a7
add esp, 8
test eax, eax
jne 0x459c71
mov edx, dword [ebx + 0x38]
push 0
lea ecx, [ebx + 0x28]
push 0x4e796c
push edx
push 0
call fcn.004071e0
test eax, eax
jne 0x459c71
lea ecx, [ebp - 0xdc]
call fcn.0044c940
mov ebx, dword [ebp - 0xdc]
mov eax, dword [ebp - 0x80]
cmp ebx, eax
jne 0x459b30
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.00406cf9
add esp, 4
mov ecx, dword [ebp - 0xd8]
push 0xffffffffffffffff
push esi
lea edx, [ebp - 0x20]
push edx
call fcn.00406690
mov byte [ebp - 0xd1], 1
mov ebx, 8
cmp dword [ebp - 0x44], ebx
jb 0x459bf8
mov eax, dword [ebp - 0x58]
push eax
call fcn.00406cf9
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 0x459c20
mov edx, dword [ebp - 0x3c]
push edx
call fcn.00406cf9
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 0x459c3d
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.00406cf9
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 0x459c5a
mov eax, dword [ebp - 0x74]
push eax
call fcn.00406cf9
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.00406cf9
mov esi, 8
add esp, 4
cmp dword [ebp - 0x44], esi
jb 0x459cac
mov edx, dword [ebp - 0x58]
push edx
call fcn.00406cf9
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 0x459cdb
mov ecx, dword [ebp - 0x3c]
push ecx
call fcn.00406cf9
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 0x459cf8
mov eax, dword [ebp - 0x20]
push eax
call fcn.00406cf9
add esp, 4
xor ecx, ecx
cmp dword [ebp - 0x60], esi
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x10], ebx
jmp 0x45986a