Function at 0x461620
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xdc
mov eax, dword [0x522638]
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 0x4ebc30
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.00405fe0
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.00406640
push 1
push 0x4e84a0
lea ecx, [ebp - 0x20]
call fcn.0040d980
push 0xffffffffffffffff
xor esi, esi
push esi
lea eax, [ebp - 0x74]
push eax
lea ecx, [ebp - 0x20]
call fcn.0040d6b0
lea ecx, [ebp - 0x20]
push ecx
mov edx, ecx
push edx
call fcn.0041e780
add esp, 8
test al, al
jne 0x4616fd
mov edi, 8
cmp dword [ebp - 0xc], edi
jb 0x4616db
mov eax, dword [ebp - 0x20]
push eax
call fcn.00406ca9
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 0x461ada
mov edx, dword [ebp - 0x74]
push edx
jmp 0x461ad2
cmp dword [ebp - 0xc], 8
mov eax, dword [ebp - 0x20]
jae 0x461709
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4616c5
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.0041e780
add esp, 8
test al, al
jne 0x46177a
mov edi, 8
cmp dword [ebp - 0x28], edi
jb 0x46174b
mov edx, dword [ebp - 0x3c]
push edx
call fcn.00406ca9
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 0x46176d
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.00406ca9
add esp, 4
xor edx, edx
cmp dword [ebp - 0x60], edi
mov dword [ebp - 0xc], ebx
jmp 0x461ac5
lea ecx, [ebp - 0x20]
push ecx
push ebx
call fcn.00459fb0
add esp, 8
test al, al
jne 0x4617df
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x3c]
push eax
call fcn.00459fb0
add esp, 8
test al, al
jne 0x4617df
mov edi, 8
cmp dword [ebp - 0x28], edi
jb 0x4617b5
mov ecx, dword [ebp - 0x3c]
push ecx
call fcn.00406ca9
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 0x4617d7
mov eax, dword [ebp - 0x20]
push eax
call fcn.00406ca9
add esp, 4
mov dword [ebp - 0xc], ebx
jmp 0x4616e2
push esi
lea ecx, [ebp - 0xd0]
call fcn.00405a20
push edi
lea ecx, [ebp - 0xd0]
call fcn.00406250
lea eax, [ebp - 0x84]
push eax
lea ecx, [ebp - 0xd0]
call fcn.00408130
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 0x461856
mov edx, dword [ebp - 0xd8]
push edx
mov edx, dword [ebp - 0x80]
lea ecx, [ebp - 0x78]
push ecx
push edx
push eax
call fcn.00406cc0
mov eax, dword [ebp - 0x84]
push eax
call fcn.00406ca9
add esp, 0x14
cmp byte [ebp - 0xd2], 0
lea ecx, [ebp - 0xd0]
je 0x4618ae
call fcn.00435650
mov edi, 8
cmp dword [ebp - 0x28], edi
jb 0x461880
mov ecx, dword [ebp - 0x3c]
push ecx
call fcn.00406ca9
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 0x4617d7
mov eax, dword [ebp - 0x20]
push eax
call fcn.00406ca9
add esp, 4
mov dword [ebp - 0xc], ebx
jmp 0x4616e2
lea eax, [ebp - 0x90]
push eax
call fcn.00419dd0
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.00406640
lea ecx, [ebp - 0x90]
call fcn.00406ef0
lea edx, [ebp - 0x58]
push ebx
push edx
call fcn.00459fb0
add esp, 8
test al, al
jne 0x46196f
lea eax, [ebp - 0x74]
push eax
lea ecx, [ebp - 0x58]
push ecx
call fcn.00459fb0
add esp, 8
test al, al
jne 0x46196f
mov ebx, 8
cmp dword [ebp - 0x44], ebx
jb 0x46191d
mov edx, dword [ebp - 0x58]
push edx
call fcn.00406ca9
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.00435650
cmp dword [ebp - 0x28], ebx
jb 0x461945
mov ecx, dword [ebp - 0x3c]
push ecx
call fcn.00406ca9
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 0x461962
mov eax, dword [ebp - 0x20]
push eax
call fcn.00406ca9
add esp, 4
xor ecx, ecx
cmp dword [ebp - 0x60], ebx
mov dword [ebp - 0xc], edi
jmp 0x4616e7
mov eax, dword [ebp - 0x9c]
cmp eax, 1
ja 0x461a62
cmp eax, esi
jbe 0x461a49
lea ecx, [ebp - 0xa4]
push ecx
lea ecx, [ebp - 0x84]
call fcn.00453620
mov eax, dword [ebp - 0x80]
mov ebx, dword [eax]
mov dword [ebp - 0xdc], ebx
cmp ebx, eax
je 0x461a27
mov edi, 0x10
cmp dword [ebx + 0x20], edi
lea esi, [ebx + 0xc]
jb 0x4619bc
mov eax, dword [esi]
jmp 0x4619be
mov eax, esi
push 0x4ebc2c
push eax
call fcn.004b89b9
add esp, 8
test eax, eax
je 0x4619ed
cmp dword [esi + 0x14], edi
jb 0x4619d7
mov esi, dword [esi]
push 0x4ebc28
push esi
call fcn.004b89b9
add esp, 8
test eax, eax
jne 0x461af1
mov edx, dword [ebx + 0x38]
push 0
lea ecx, [ebx + 0x28]
push 0x4e596c
push edx
push 0
call fcn.00407190
test eax, eax
jne 0x461af1
lea ecx, [ebp - 0xdc]
call fcn.00452880
mov ebx, dword [ebp - 0xdc]
mov eax, dword [ebp - 0x80]
cmp ebx, eax
jne 0x4619b0
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.00435720
mov ecx, dword [ebp - 0x80]
push ecx
call fcn.00406ca9
add esp, 4
mov ecx, dword [ebp - 0xd8]
push 0xffffffffffffffff
push esi
lea edx, [ebp - 0x20]
push edx
call fcn.00406640
mov byte [ebp - 0xd1], 1
mov ebx, 8
cmp dword [ebp - 0x44], ebx
jb 0x461a78
mov eax, dword [ebp - 0x58]
push eax
call fcn.00406ca9
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.00435650
cmp dword [ebp - 0x28], ebx
jb 0x461aa0
mov edx, dword [ebp - 0x3c]
push edx
call fcn.00406ca9
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 0x461abd
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.00406ca9
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 0x461ada
mov eax, dword [ebp - 0x74]
push eax
call fcn.00406ca9
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.00435720
mov ecx, dword [ebp - 0x80]
push ecx
call fcn.00406ca9
mov esi, 8
add esp, 4
cmp dword [ebp - 0x44], esi
jb 0x461b2c
mov edx, dword [ebp - 0x58]
push edx
call fcn.00406ca9
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.00435650
cmp dword [ebp - 0x28], esi
jb 0x461b5b
mov ecx, dword [ebp - 0x3c]
push ecx
call fcn.00406ca9
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 0x461b78
mov eax, dword [ebp - 0x20]
push eax
call fcn.00406ca9
add esp, 4
xor ecx, ecx
cmp dword [ebp - 0x60], esi
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x10], ebx
jmp 0x4616ea