Function at 0x4642d0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x504cf1
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x5651c0]
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.004648e0
mov dword [ebp - 4], 1
cmp dword [eax + 0x14], 8
mov dword [ebp - 0x78], 1
jb 0x464336
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x464349
mov byte [ebp - 0x71], al
cmp dword [ebx + 0x10], eax
jne 0x46434d
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 0x4643bb
mov ecx, dword [ebp - 0x58]
inc eax
cmp eax, 0x7fffffff
jbe 0x46437a
call fcn.004d7db2
add eax, eax
cmp eax, 0x1000
jb 0x4643b2
test byte [ebp - 0x58], 0x1f
je 0x46438e
call fcn.004d7db2
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x46439a
call fcn.004d7db2
sub ecx, eax
cmp ecx, 4
jae 0x4643a6
call fcn.004d7db2
cmp ecx, 0x23
jbe 0x4643b0
call fcn.004d7db2
mov ecx, eax
push ecx
call fcn.004d2078
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 0x4643fe
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.00404b8e
mov dword [ebp - 4], 0
or edi, 2
mov dword [ebp - 0x78], edi
jmp 0x4646a6
lea eax, [ebp - 0x70]
mov ecx, ebx
push eax
call fcn.00464870
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.00464d30
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x40]
push ecx
mov edx, eax
lea ecx, [ebp - 0x28]
call fcn.004642d0
add esp, 4
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0x44]
cmp eax, 8
jb 0x4644b3
mov ecx, dword [ebp - 0x58]
inc eax
cmp eax, 0x7fffffff
jbe 0x464472
call fcn.004d7db2
add eax, eax
cmp eax, 0x1000
jb 0x4644aa
test byte [ebp - 0x58], 0x1f
je 0x464486
call fcn.004d7db2
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x464492
call fcn.004d7db2
sub ecx, eax
cmp ecx, 4
jae 0x46449e
call fcn.004d7db2
cmp ecx, 0x23
jbe 0x4644a8
call fcn.004d7db2
mov ecx, eax
push ecx
call fcn.004d2078
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.0042384b
mov eax, dword [ebp - 0x7c]
lea ecx, [ebp - 0x40]
cmp eax, ecx
je 0x4644e9
push 0xffffffffffffffff
push 0
push ecx
mov ecx, eax
call fcn.00404b8e
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 0x464521
mov eax, dword [ebp - 0x18]
add eax, 1
je 0x46452d
add eax, eax
push eax
lea eax, [ebp - 0x28]
push eax
push esi
call fcn.004d3910
mov ecx, dword [ebp - 0x14]
add esp, 0xc
jmp 0x46452d
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 0x4645b1
mov ecx, dword [ebp - 0x28]
inc eax
cmp eax, 0x7fffffff
jbe 0x464570
call fcn.004d7db2
add eax, eax
cmp eax, 0x1000
jb 0x4645a8
test byte [ebp - 0x28], 0x1f
je 0x464584
call fcn.004d7db2
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x464590
call fcn.004d7db2
sub ecx, eax
cmp ecx, 4
jae 0x46459c
call fcn.004d7db2
cmp ecx, 0x23
jbe 0x4645a6
call fcn.004d7db2
mov ecx, eax
push ecx
call fcn.004d2078
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 0x464622
mov ecx, dword [ebp - 0x40]
inc eax
cmp eax, 0x7fffffff
jbe 0x4645e1
call fcn.004d7db2
add eax, eax
cmp eax, 0x1000
jb 0x464619
test byte [ebp - 0x40], 0x1f
je 0x4645f5
call fcn.004d7db2
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x464601
call fcn.004d7db2
sub ecx, eax
cmp ecx, 4
jae 0x46460d
call fcn.004d7db2
cmp ecx, 0x23
jbe 0x464617
call fcn.004d7db2
mov ecx, eax
push ecx
call fcn.004d2078
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 0x464692
mov ecx, dword [ebp - 0x70]
inc eax
cmp eax, 0x7fffffff
jbe 0x464651
call fcn.004d7db2
add eax, eax
cmp eax, 0x1000
jb 0x464689
test byte [ebp - 0x70], 0x1f
je 0x464665
call fcn.004d7db2
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x464671
call fcn.004d7db2
sub ecx, eax
cmp ecx, 4
jae 0x46467d
call fcn.004d7db2
cmp ecx, 0x23
jbe 0x464687
call fcn.004d7db2
mov ecx, eax
push ecx
call fcn.004d2078
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.004d207d
mov esp, ebp
pop ebp
ret