Function at 0x4668a0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x505701
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x56d078]
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 ebx, edx
mov esi, ecx
mov dword [ebp - 0x80], esi
mov eax, dword [ebp + 8]
mov ecx, ebx
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x58]
push eax
mov dword [ebp - 0x84], esi
mov dword [ebp - 0x78], 0
call fcn.00466ec0
mov dword [ebp - 4], 1
cmp dword [eax + 0x14], 8
mov dword [ebp - 0x78], 1
jb 0x466906
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x466919
mov byte [ebp - 0x71], al
cmp dword [ebx + 0x10], eax
jne 0x46691d
mov byte [ebp - 0x71], 1
mov dword [ebp - 4], 0
mov edi, 1
mov dword [ebp - 0x78], edi
and edi, 0xfffffffe
mov dword [ebp - 0x78], edi
mov eax, dword [ebp - 0x44]
cmp eax, 8
jb 0x46698b
mov ecx, dword [ebp - 0x58]
inc eax
cmp eax, 0x7fffffff
jbe 0x46694a
call fcn.004d3911
add eax, eax
cmp eax, 0x1000
jb 0x466982
test byte [ebp - 0x58], 0x1f
je 0x46695e
call fcn.004d3911
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x46696a
call fcn.004d3911
sub ecx, eax
cmp ecx, 4
jae 0x466976
call fcn.004d3911
cmp ecx, 0x23
jbe 0x466980
call fcn.004d3911
mov ecx, eax
push ecx
call fcn.004cde62
add esp, 4
xor eax, eax
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
cmp byte [ebp - 0x71], al
je 0x4669ce
push 0xffffffffffffffff
push eax
mov dword [esi + 0x14], 7
mov ecx, esi
mov dword [esi + 0x10], eax
push ebx
mov word [esi], ax
call fcn.004049bb
mov dword [ebp - 4], 0
or edi, 2
mov dword [ebp - 0x78], edi
jmp 0x466c76
lea eax, [ebp - 0x70]
mov ecx, ebx
push eax
call fcn.00466e50
mov dword [ebp - 4], 4
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
mov byte [ebp - 4], 7
lea eax, [ebp - 0x58]
push eax
mov ecx, ebx
call fcn.00467650
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x40]
push ecx
mov edx, eax
lea ecx, [ebp - 0x28]
call fcn.004668a0
add esp, 4
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0x44]
cmp eax, 8
jb 0x466a83
mov ecx, dword [ebp - 0x58]
inc eax
cmp eax, 0x7fffffff
jbe 0x466a42
call fcn.004d3911
add eax, eax
cmp eax, 0x1000
jb 0x466a7a
test byte [ebp - 0x58], 0x1f
je 0x466a56
call fcn.004d3911
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x466a62
call fcn.004d3911
sub ecx, eax
cmp ecx, 4
jae 0x466a6e
call fcn.004d3911
cmp ecx, 0x23
jbe 0x466a78
call fcn.004d3911
mov ecx, eax
push ecx
call fcn.004cde62
add esp, 4
xor eax, eax
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
lea ecx, [ebp - 0x40]
lea eax, [ebp - 0x70]
mov dword [ebp - 0x48], 0
push eax
call fcn.00425d47
mov eax, dword [ebp - 0x7c]
lea ecx, [ebp - 0x40]
cmp eax, ecx
je 0x466ab9
push 0xffffffffffffffff
push 0
push ecx
mov ecx, eax
call fcn.004049bb
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jae 0x466af1
mov eax, dword [ebp - 0x18]
add eax, 1
je 0x466afd
add eax, eax
push eax
lea eax, [ebp - 0x28]
push eax
push esi
call fcn.004cf700
mov ecx, dword [ebp - 0x14]
add esp, 0xc
jmp 0x466afd
mov eax, dword [ebp - 0x28]
mov dword [esi], eax
mov dword [ebp - 0x28], 0
mov eax, dword [ebp - 0x18]
mov dword [esi + 0x10], eax
xor eax, eax
mov dword [esi + 0x14], ecx
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov byte [ebp - 4], 0xa
or edi, 2
mov dword [ebp - 0x78], edi
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x466b81
mov ecx, dword [ebp - 0x28]
inc eax
cmp eax, 0x7fffffff
jbe 0x466b40
call fcn.004d3911
add eax, eax
cmp eax, 0x1000
jb 0x466b78
test byte [ebp - 0x28], 0x1f
je 0x466b54
call fcn.004d3911
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x466b60
call fcn.004d3911
sub ecx, eax
cmp ecx, 4
jae 0x466b6c
call fcn.004d3911
cmp ecx, 0x23
jbe 0x466b76
call fcn.004d3911
mov ecx, eax
push ecx
call fcn.004cde62
add esp, 4
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x466bf2
mov ecx, dword [ebp - 0x40]
inc eax
cmp eax, 0x7fffffff
jbe 0x466bb1
call fcn.004d3911
add eax, eax
cmp eax, 0x1000
jb 0x466be9
test byte [ebp - 0x40], 0x1f
je 0x466bc5
call fcn.004d3911
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x466bd1
call fcn.004d3911
sub ecx, eax
cmp ecx, 4
jae 0x466bdd
call fcn.004d3911
cmp ecx, 0x23
jbe 0x466be7
call fcn.004d3911
mov ecx, eax
push ecx
call fcn.004cde62
add esp, 4
xor eax, eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
mov byte [ebp - 4], al
mov eax, dword [ebp - 0x5c]
cmp eax, 8
jb 0x466c62
mov ecx, dword [ebp - 0x70]
inc eax
cmp eax, 0x7fffffff
jbe 0x466c21
call fcn.004d3911
add eax, eax
cmp eax, 0x1000
jb 0x466c59
test byte [ebp - 0x70], 0x1f
je 0x466c35
call fcn.004d3911
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x466c41
call fcn.004d3911
sub ecx, eax
cmp ecx, 4
jae 0x466c4d
call fcn.004d3911
cmp ecx, 0x23
jbe 0x466c57
call fcn.004d3911
mov ecx, eax
push ecx
call fcn.004cde62
add esp, 4
xor eax, eax
mov dword [ebp - 0x5c], 7
mov dword [ebp - 0x60], 0
mov word [ebp - 0x70], ax
mov eax, esi
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.004cde67
mov esp, ebp
pop ebp
ret