Function at 0x4645f0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x507741
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x56a078]
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.00464c00
mov dword [ebp - 4], 1
cmp dword [eax + 0x14], 8
mov dword [ebp - 0x78], 1
jb 0x464656
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x464669
mov byte [ebp - 0x71], al
cmp dword [ebx + 0x10], eax
jne 0x46466d
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 0x4646db
mov ecx, dword [ebp - 0x58]
inc eax
cmp eax, 0x7fffffff
jbe 0x46469a
call fcn.004d5e81
add eax, eax
cmp eax, 0x1000
jb 0x4646d2
test byte [ebp - 0x58], 0x1f
je 0x4646ae
call fcn.004d5e81
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x4646ba
call fcn.004d5e81
sub ecx, eax
cmp ecx, 4
jae 0x4646c6
call fcn.004d5e81
cmp ecx, 0x23
jbe 0x4646d0
call fcn.004d5e81
mov ecx, eax
push ecx
call fcn.004d0147
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 0x46471e
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.00404b6e
mov dword [ebp - 4], 0
or edi, 2
mov dword [ebp - 0x78], edi
jmp 0x4649c6
lea eax, [ebp - 0x70]
mov ecx, ebx
push eax
call fcn.00464b90
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.00465040
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x40]
push ecx
mov edx, eax
lea ecx, [ebp - 0x28]
call fcn.004645f0
add esp, 4
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0x44]
cmp eax, 8
jb 0x4647d3
mov ecx, dword [ebp - 0x58]
inc eax
cmp eax, 0x7fffffff
jbe 0x464792
call fcn.004d5e81
add eax, eax
cmp eax, 0x1000
jb 0x4647ca
test byte [ebp - 0x58], 0x1f
je 0x4647a6
call fcn.004d5e81
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x4647b2
call fcn.004d5e81
sub ecx, eax
cmp ecx, 4
jae 0x4647be
call fcn.004d5e81
cmp ecx, 0x23
jbe 0x4647c8
call fcn.004d5e81
mov ecx, eax
push ecx
call fcn.004d0147
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.004238fd
mov eax, dword [ebp - 0x7c]
lea ecx, [ebp - 0x40]
cmp eax, ecx
je 0x464809
push 0xffffffffffffffff
push 0
push ecx
mov ecx, eax
call fcn.00404b6e
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 0x464841
mov eax, dword [ebp - 0x18]
add eax, 1
je 0x46484d
add eax, eax
push eax
lea eax, [ebp - 0x28]
push eax
push esi
call fcn.004d19f0
mov ecx, dword [ebp - 0x14]
add esp, 0xc
jmp 0x46484d
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 0x4648d1
mov ecx, dword [ebp - 0x28]
inc eax
cmp eax, 0x7fffffff
jbe 0x464890
call fcn.004d5e81
add eax, eax
cmp eax, 0x1000
jb 0x4648c8
test byte [ebp - 0x28], 0x1f
je 0x4648a4
call fcn.004d5e81
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x4648b0
call fcn.004d5e81
sub ecx, eax
cmp ecx, 4
jae 0x4648bc
call fcn.004d5e81
cmp ecx, 0x23
jbe 0x4648c6
call fcn.004d5e81
mov ecx, eax
push ecx
call fcn.004d0147
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 0x464942
mov ecx, dword [ebp - 0x40]
inc eax
cmp eax, 0x7fffffff
jbe 0x464901
call fcn.004d5e81
add eax, eax
cmp eax, 0x1000
jb 0x464939
test byte [ebp - 0x40], 0x1f
je 0x464915
call fcn.004d5e81
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x464921
call fcn.004d5e81
sub ecx, eax
cmp ecx, 4
jae 0x46492d
call fcn.004d5e81
cmp ecx, 0x23
jbe 0x464937
call fcn.004d5e81
mov ecx, eax
push ecx
call fcn.004d0147
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 0x4649b2
mov ecx, dword [ebp - 0x70]
inc eax
cmp eax, 0x7fffffff
jbe 0x464971
call fcn.004d5e81
add eax, eax
cmp eax, 0x1000
jb 0x4649a9
test byte [ebp - 0x70], 0x1f
je 0x464985
call fcn.004d5e81
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x464991
call fcn.004d5e81
sub ecx, eax
cmp ecx, 4
jae 0x46499d
call fcn.004d5e81
cmp ecx, 0x23
jbe 0x4649a7
call fcn.004d5e81
mov ecx, eax
push ecx
call fcn.004d0147
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.004d014c
mov esp, ebp
pop ebp
ret