Function at 0x46c000
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xdc
mov eax, dword [0x54e938]
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 0x514690
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.00406300
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.00406960
push 1
push 0x5104d4
lea ecx, [ebp - 0x20]
call fcn.0040e560
push 0xffffffffffffffff
xor esi, esi
push esi
lea eax, [ebp - 0x74]
push eax
lea ecx, [ebp - 0x20]
call fcn.0040e6b0
lea ecx, [ebp - 0x20]
push ecx
mov edx, ecx
push edx
call fcn.00417a40
add esp, 8
test al, al
jne 0x46c0dd
mov edi, 8
cmp dword [ebp - 0xc], edi
jb 0x46c0bb
mov eax, dword [ebp - 0x20]
push eax
call fcn.00406ec9
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 0x46c4ba
mov edx, dword [ebp - 0x74]
push edx
jmp 0x46c4b2
cmp dword [ebp - 0xc], 8
mov eax, dword [ebp - 0x20]
jae 0x46c0e9
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x46c0a5
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.00417a40
add esp, 8
test al, al
jne 0x46c15a
mov edi, 8
cmp dword [ebp - 0x28], edi
jb 0x46c12b
mov edx, dword [ebp - 0x3c]
push edx
call fcn.00406ec9
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 0x46c14d
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.00406ec9
add esp, 4
xor edx, edx
cmp dword [ebp - 0x60], edi
mov dword [ebp - 0xc], ebx
jmp 0x46c4a5
lea ecx, [ebp - 0x20]
push ecx
push ebx
call fcn.0043dfb0
add esp, 8
test al, al
jne 0x46c1bf
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x3c]
push eax
call fcn.0043dfb0
add esp, 8
test al, al
jne 0x46c1bf
mov edi, 8
cmp dword [ebp - 0x28], edi
jb 0x46c195
mov ecx, dword [ebp - 0x3c]
push ecx
call fcn.00406ec9
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 0x46c1b7
mov eax, dword [ebp - 0x20]
push eax
call fcn.00406ec9
add esp, 4
mov dword [ebp - 0xc], ebx
jmp 0x46c0c2
push esi
lea ecx, [ebp - 0xd0]
call fcn.00405d40
push edi
lea ecx, [ebp - 0xd0]
call fcn.00406570
lea eax, [ebp - 0x84]
push eax
lea ecx, [ebp - 0xd0]
call fcn.00408350
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 0x46c236
mov edx, dword [ebp - 0xd8]
push edx
mov edx, dword [ebp - 0x80]
lea ecx, [ebp - 0x78]
push ecx
push edx
push eax
call fcn.00406ee0
mov eax, dword [ebp - 0x84]
push eax
call fcn.00406ec9
add esp, 0x14
cmp byte [ebp - 0xd2], 0
lea ecx, [ebp - 0xd0]
je 0x46c28e
call fcn.00438ee0
mov edi, 8
cmp dword [ebp - 0x28], edi
jb 0x46c260
mov ecx, dword [ebp - 0x3c]
push ecx
call fcn.00406ec9
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 0x46c1b7
mov eax, dword [ebp - 0x20]
push eax
call fcn.00406ec9
add esp, 4
mov dword [ebp - 0xc], ebx
jmp 0x46c0c2
lea eax, [ebp - 0x90]
push eax
call fcn.004104f0
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.00406960
lea ecx, [ebp - 0x90]
call fcn.00407110
lea edx, [ebp - 0x58]
push ebx
push edx
call fcn.0043dfb0
add esp, 8
test al, al
jne 0x46c34f
lea eax, [ebp - 0x74]
push eax
lea ecx, [ebp - 0x58]
push ecx
call fcn.0043dfb0
add esp, 8
test al, al
jne 0x46c34f
mov ebx, 8
cmp dword [ebp - 0x44], ebx
jb 0x46c2fd
mov edx, dword [ebp - 0x58]
push edx
call fcn.00406ec9
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.00438ee0
cmp dword [ebp - 0x28], ebx
jb 0x46c325
mov ecx, dword [ebp - 0x3c]
push ecx
call fcn.00406ec9
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 0x46c342
mov eax, dword [ebp - 0x20]
push eax
call fcn.00406ec9
add esp, 4
xor ecx, ecx
cmp dword [ebp - 0x60], ebx
mov dword [ebp - 0xc], edi
jmp 0x46c0c7
mov eax, dword [ebp - 0x9c]
cmp eax, 1
ja 0x46c442
cmp eax, esi
jbe 0x46c429
lea ecx, [ebp - 0xa4]
push ecx
lea ecx, [ebp - 0x84]
call fcn.00459f20
mov eax, dword [ebp - 0x80]
mov ebx, dword [eax]
mov dword [ebp - 0xdc], ebx
cmp ebx, eax
je 0x46c407
mov edi, 0x10
cmp dword [ebx + 0x20], edi
lea esi, [ebx + 0xc]
jb 0x46c39c
mov eax, dword [esi]
jmp 0x46c39e
mov eax, esi
push 0x51468c
push eax
call fcn.004e20da
add esp, 8
test eax, eax
je 0x46c3cd
cmp dword [esi + 0x14], edi
jb 0x46c3b7
mov esi, dword [esi]
push 0x514688
push esi
call fcn.004e20da
add esp, 8
test eax, eax
jne 0x46c4d1
mov edx, dword [ebx + 0x38]
push 0
lea ecx, [ebx + 0x28]
push 0x50d97c
push edx
push 0
call fcn.004073b0
test eax, eax
jne 0x46c4d1
lea ecx, [ebp - 0xdc]
call fcn.0047a880
mov ebx, dword [ebp - 0xdc]
mov eax, dword [ebp - 0x80]
cmp ebx, eax
jne 0x46c390
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.00438fb0
mov ecx, dword [ebp - 0x80]
push ecx
call fcn.00406ec9
add esp, 4
mov ecx, dword [ebp - 0xd8]
push 0xffffffffffffffff
push esi
lea edx, [ebp - 0x20]
push edx
call fcn.00406960
mov byte [ebp - 0xd1], 1
mov ebx, 8
cmp dword [ebp - 0x44], ebx
jb 0x46c458
mov eax, dword [ebp - 0x58]
push eax
call fcn.00406ec9
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.00438ee0
cmp dword [ebp - 0x28], ebx
jb 0x46c480
mov edx, dword [ebp - 0x3c]
push edx
call fcn.00406ec9
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 0x46c49d
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.00406ec9
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 0x46c4ba
mov eax, dword [ebp - 0x74]
push eax
call fcn.00406ec9
add esp, 4
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0xd1]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401316
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.00438fb0
mov ecx, dword [ebp - 0x80]
push ecx
call fcn.00406ec9
mov esi, 8
add esp, 4
cmp dword [ebp - 0x44], esi
jb 0x46c50c
mov edx, dword [ebp - 0x58]
push edx
call fcn.00406ec9
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.00438ee0
cmp dword [ebp - 0x28], esi
jb 0x46c53b
mov ecx, dword [ebp - 0x3c]
push ecx
call fcn.00406ec9
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 0x46c558
mov eax, dword [ebp - 0x20]
push eax
call fcn.00406ec9
add esp, 4
xor ecx, ecx
cmp dword [ebp - 0x60], esi
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x10], ebx
jmp 0x46c0ca