Function at 0x46c050
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fe429
mov eax, dword fs:[0]
push eax
sub esp, 0x17c
mov eax, dword [0x550070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x128], ecx
lea eax, [ebp - 0x94]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x108]
mov eax, dword [ebp + 8]
mov edx, dword [edx]
mov ecx, dword [eax + 0x108]
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 0x144], eax
mov ecx, dword [ebp - 0x144]
mov dword [ebp - 0x148], ecx
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x148]
call dword [sym.imp.DuiLib.dll_public:_wchar_t_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__void_const]
push eax
lea ecx, [ebp - 0x134]
call fcn.004050b0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x94]
call dword [sym.imp.DuiLib.dll_public:_void___thiscall_DuiLib::CDuiString::destructor_void_]
push 0
push 0x5551ec
push 0x553dec
push 0
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x108]
push eax
call fcn.004f944d
add esp, 0x14
mov dword [ebp - 0x130], eax
push 0x51b344
lea ecx, [ebp - 0x134]
push ecx
call fcn.0040d100
add esp, 8
movzx edx, al
test edx, edx
je 0x46c4bc
mov dword [ebp - 0x12c], 0
jmp 0x46c144
mov eax, dword [ebp - 0x12c]
add eax, 1
mov dword [ebp - 0x12c], eax
cmp dword [ebp - 0x12c], 3
jae 0x46c4bc
imul ecx, dword [ebp - 0x12c], 0x28
mov edx, dword [ebp - 0x128]
lea eax, [edx + ecx + 0x390]
mov dword [ebp - 0x11c], eax
mov ecx, dword [ebp - 0x11c]
cmp dword [ecx + 0x1c], 0
jne 0x46c179
jmp 0x46c135
mov edx, dword [ebp - 0x11c]
mov eax, dword [ebp - 0x130]
cmp eax, dword [edx]
je 0x46c18b
jmp 0x46c135
lea ecx, [ebp - 0x124]
call fcn.00403790
mov byte [ebp - 4], 3
mov dword [ebp - 0x17c], 0
xor ecx, ecx
mov dword [ebp - 0x178], ecx
mov dword [ebp - 0x174], ecx
mov dword [ebp - 0x170], ecx
mov dword [ebp - 0x16c], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x160], ecx
mov dword [ebp - 0x15c], ecx
mov dword [ebp - 0x158], ecx
mov edx, dword [ebp - 0x17c]
or edx, 4
mov dword [ebp - 0x17c], edx
lea eax, [ebp - 0x17c]
push eax
mov ecx, dword [ebp - 0x11c]
mov ecx, dword [ecx + 4]
call dword [sym.imp.DuiLib.dll_public:_int___thiscall_DuiLib::CTreeViewExUI::GetSelItem_struct_DuiLib::DTV_ITEM__]
test eax, eax
je 0x46c22f
mov edx, dword [ebp - 0x158]
mov dword [ebp - 0x138], edx
cmp dword [ebp - 0x138], 0
je 0x46c22f
mov eax, dword [ebp - 0x138]
add eax, 8
push eax
lea ecx, [ebp - 0x124]
call fcn.00410ec0
lea ecx, [ebp - 0x118]
push ecx
mov edx, dword [ebp - 0x130]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x130]
mov edx, dword [eax + 0x28]
call edx
mov dword [ebp - 0x14c], eax
mov eax, dword [ebp - 0x14c]
mov dword [ebp - 0x150], eax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x150]
call dword [sym.imp.DuiLib.dll_public:_wchar_t_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__void_const]
push eax
lea ecx, [ebp - 0x120]
call fcn.004050b0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x118]
call dword [sym.imp.DuiLib.dll_public:_void___thiscall_DuiLib::CDuiString::destructor_void_]
push 0x5c
lea ecx, [ebp - 0x124]
call fcn.004038a0
push eax
call fcn.004d3e3c
add esp, 8
mov esi, eax
lea ecx, [ebp - 0x124]
call fcn.004038a0
sub esi, eax
sar esi, 1
push 0x5c
lea ecx, [ebp - 0x120]
call fcn.004038a0
push eax
call fcn.004d3e3c
add esp, 8
mov edi, eax
lea ecx, [ebp - 0x120]
call fcn.004038a0
sub edi, eax
sar edi, 1
cmp esi, edi
jle 0x46c308
push 0x5c
lea ecx, [ebp - 0x124]
call fcn.004038a0
push eax
call fcn.004d3e3c
add esp, 8
mov esi, eax
lea ecx, [ebp - 0x124]
call fcn.004038a0
sub esi, eax
sar esi, 1
mov dword [ebp - 0x13c], esi
jmp 0x46c335
push 0x5c
lea ecx, [ebp - 0x120]
call fcn.004038a0
push eax
call fcn.004d3e3c
add esp, 8
mov esi, eax
lea ecx, [ebp - 0x120]
call fcn.004038a0
sub esi, eax
sar esi, 1
mov dword [ebp - 0x13c], esi
mov ecx, dword [ebp - 0x13c]
mov dword [ebp - 0x154], ecx
mov edx, dword [ebp - 0x154]
push edx
lea ecx, [ebp - 0x120]
call fcn.004038a0
push eax
lea ecx, [ebp - 0x124]
call fcn.004038a0
push eax
call fcn.004de740
add esp, 0xc
test eax, eax
jne 0x46c398
push 0
push 0
push 0x703
lea eax, [ebp - 0x180]
push eax
mov ecx, dword [ebp - 0x128]
add ecx, 4
call fcn.00473810
mov ecx, dword [eax]
push ecx
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x46c485
mov edx, dword [ebp - 0x11c]
cmp dword [edx + 0x20], 0
je 0x46c3eb
lea ecx, [ebp - 0x120]
call fcn.004038a0
push eax
call fcn.0046bfe0
add esp, 4
movzx eax, al
test eax, eax
jne 0x46c3eb
push 0
push 0
push 0x703
lea ecx, [ebp - 0x184]
push ecx
mov ecx, dword [ebp - 0x128]
add ecx, 4
call fcn.00473810
mov edx, dword [eax]
push edx
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x46c485
mov eax, dword [ebp - 0x11c]
cmp dword [eax + 0x20], 0
jne 0x46c436
lea ecx, [ebp - 0x120]
call fcn.004038a0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x46c436
push 0
push 0
push 0x703
lea ecx, [ebp - 0x188]
push ecx
mov ecx, dword [ebp - 0x128]
add ecx, 4
call fcn.00473810
mov edx, dword [eax]
push edx
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x46c485
lea eax, [ebp - 0x120]
push eax
mov ecx, dword [ebp - 0x11c]
push ecx
mov ecx, dword [ebp - 0x128]
call fcn.0046f8a0
mov dword [ebp - 0x140], eax
cmp dword [ebp - 0x140], 0
je 0x46c485
mov edx, dword [ebp - 0x11c]
mov eax, dword [edx + 0x10]
or eax, 0x20
mov ecx, dword [ebp - 0x11c]
mov dword [ecx + 0x10], eax
mov edx, dword [ebp - 0x11c]
mov eax, dword [edx + 0x18]
mov ecx, dword [ebp - 0x140]
mov dword [eax + 0x10], ecx
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x120]
call fcn.004036f0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x124]
call fcn.004036f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x134]
call fcn.004036f0
jmp 0x46c4ce
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x134]
call fcn.004036f0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d181f
mov esp, ebp
pop ebp
ret 4