Function at 0x46cd40
Capabilities:
Check if file exists

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fb106
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x458
mov eax, dword [0x530010]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
mov dword [ebp - 0x464], edi
mov dword [ebp - 0x464], edi
xor eax, eax
mov dword [ebp - 4], 1
push eax
mov dword [ebp - 0x440], 0
lea ecx, [ebp - 0x440]
push 0x517e54
mov dword [ebp - 0x430], 0
mov dword [ebp - 0x42c], 7
mov word [ebp - 0x440], ax
call fcn.004014e0
push 0x208
lea eax, [ebp - 0x220]
mov byte [ebp - 4], 2
push 0
push eax
call fcn.004c6550
push 0x208
lea eax, [ebp - 0x428]
push 0
push eax
call fcn.004c6550
cmp dword [ebx + 0x1c], 8
lea eax, [ebx + 8]
cmovae eax, dword [ebx + 8]
push eax
lea eax, [ebp - 0x220]
push 0x104
push eax
call fcn.004d3860
cmp dword [ebx + 0x1c], 8
lea eax, [ebx + 8]
cmovae eax, dword [ebx + 8]
push eax
lea eax, [ebp - 0x428]
push 0x104
push eax
call fcn.004d3860
add esp, 0x30
mov dword [ebp - 0x444], 0
cmp dword [ebx + 0x34], 8
lea eax, [ebp - 0x220]
mov dword [ebp - 0x458], eax
xorps xmm0, xmm0
lea eax, [ebx + 0x20]
movlpd qword [ebp - 0x44c], xmm0
cmovae eax, dword [ebx + 0x20]
mov dword [ebp - 0x454], eax
lea eax, [ebp - 0x428]
push eax
mov dword [ebp - 0x460], esi
mov dword [ebp - 0x45c], 0
mov dword [ebp - 0x450], 0x41
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x46ceaa
lea eax, [ebp - 0x428]
mov dword [ebp - 0x44c], 0x46cd10
mov dword [ebp - 0x448], eax
lea eax, [ebp - 0x460]
push eax
call dword [sym.imp.SHELL32.dll_SHBrowseForFolderW]
mov esi, eax
test esi, esi
jne 0x46cfc5
push eax
mov dword [edi], eax
mov ecx, edi
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], 7
push 0x517e54
mov word [edi], ax
call fcn.004014e0
mov edx, dword [ebp - 0x42c]
cmp edx, 8
jb 0x46cf1d
mov ecx, dword [ebp - 0x440]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46cf13
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46d0b6
push edx
push ecx
call fcn.00476a87
add esp, 8
mov edx, dword [ebx + 0x1c]
cmp edx, 8
jb 0x46cf57
mov ecx, dword [ebx + 8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46cf4d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46d0b6
push edx
push ecx
call fcn.00476a87
add esp, 8
mov edx, dword [ebx + 0x34]
xor eax, eax
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x1c], 7
mov word [ebx + 8], ax
cmp edx, 8
jb 0x46cfa5
mov ecx, dword [ebx + 0x20]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46cf9b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46d0b6
push edx
push ecx
call fcn.00476a87
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00476a44
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
lea eax, [ebp - 0x220]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x46d002
lea ecx, [ebp - 0x220]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46cfe0
sub ecx, edx
lea eax, [ebp - 0x220]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x440]
call fcn.004014e0
push esi
call dword [sym.imp.ole32.dll_CoTaskMemFree]
movups xmm0, xmmword [ebp - 0x440]
mov edx, dword [ebx + 0x1c]
mov dword [edi], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
movups xmmword [edi], xmm0
movq xmm0, qword [ebp - 0x430]
movq qword [edi + 0x10], xmm0
cmp edx, 8
jb 0x46d06a
mov ecx, dword [ebx + 8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46d060
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46d0b6
push edx
push ecx
call fcn.00476a87
add esp, 8
mov edx, dword [ebx + 0x34]
xor eax, eax
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x1c], 7
mov word [ebx + 8], ax
cmp edx, 8
jb 0x46cfa5
mov ecx, dword [ebx + 0x20]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46cf9b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x46cf9b
call fcn.004ca66d
int3