Function at 0x494ed0
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x308
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0xa8]
push edi
mov edi, ecx
mov dword [ebp - 4], 0
push eax
mov ecx, dword [esi + 4]
call fcn.0042a530
lea eax, [ebp - 0xa8]
push str.btn_ok
push eax
call fcn.00407240
add esp, 8
test al, al
je 0x4955ad
mov ecx, dword [edi + 0x260]
lea eax, [ebp - 0x54]
push eax
call fcn.0044bcc0
mov ecx, dword [ebp - 0x44]
test ecx, ecx
je 0x494f86
mov edx, dword [ebp - 0x40]
lea eax, [ebp - 0x54]
mov esi, dword [ebp - 0x54]
cmp edx, 8
cmovae eax, esi
cmp word [eax], 0x23
jne 0x495574
cmp ecx, 9
jne 0x495574
mov eax, dword [edi + 0x258]
lea ebx, [ebp - 0x54]
lea ecx, [eax + 0xc4]
cmp ecx, ebx
je 0x494f74
cmp edx, 8
mov eax, ebx
push 9
cmovae eax, esi
push eax
call fcn.00402e60
mov eax, dword [edi + 0x258]
add eax, 0xc4
push eax
push eax
call fcn.00408620
add esp, 8
mov ecx, dword [ebp - 0x44]
mov edx, dword [edi + 0x258]
lea ebx, [edi + 0x258]
add edx, 0xc4
lea eax, [ebp - 0x54]
cmp edx, eax
je 0x494fb0
cmp dword [ebp - 0x40], 8
push ecx
cmovae eax, dword [ebp - 0x54]
mov ecx, edx
push eax
call fcn.00402e60
push 9
xor eax, eax
mov dword [ebp - 0xc], 0
push str.edit_name
lea ecx, [ebp - 0x1c]
mov dword [ebp - 8], 7
mov word [ebp - 0x1c], ax
call fcn.00402e60
mov esi, dword [ebx]
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x1c]
mov ecx, edi
push eax
call fcn.00427880
mov ecx, eax
call fcn.0044bcc0
mov dword [ebp + 8], eax
lea eax, [esi + 0x18]
mov esi, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp eax, esi
je 0x495028
mov ecx, eax
call fcn.00403070
movups xmm0, xmmword [esi]
mov eax, dword [ebp - 4]
movups xmmword [eax], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [eax + 0x10], xmm0
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
lea ecx, [ebp - 0x3c]
call fcn.00403070
lea ecx, [ebp - 0x1c]
call fcn.00403070
mov esi, dword [ebx]
lea eax, [esi + 0x18]
push eax
lea eax, [ebp - 0x6c]
push eax
call fcn.00474970
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.00401570
mov dword [ebp + 8], eax
add esp, 0x10
lea eax, [esi + 0x30]
mov esi, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp eax, esi
je 0x495091
mov ecx, eax
call fcn.00403070
movups xmm0, xmmword [esi]
mov eax, dword [ebp - 4]
movups xmmword [eax], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [eax + 0x10], xmm0
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
lea ecx, [ebp - 0x3c]
call fcn.00403070
lea ecx, [ebp - 0x6c]
call fcn.00403070
mov eax, dword [ebx]
cmp dword [eax + 0x14], 7
je 0x495135
push 8
xor eax, eax
mov dword [ebp - 0xc], 0
push str.edit_url
lea ecx, [ebp - 0x1c]
mov dword [ebp - 8], 7
mov word [ebp - 0x1c], ax
call fcn.00402e60
mov esi, dword [ebx]
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x1c]
mov ecx, edi
push eax
call fcn.00427880
mov ecx, eax
call fcn.0044bcc0
mov dword [ebp + 8], eax
lea eax, [esi + 0x48]
mov esi, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp eax, esi
je 0x495125
mov ecx, eax
call fcn.00403070
movups xmm0, xmmword [esi]
mov eax, dword [ebp - 4]
movups xmmword [eax], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [eax + 0x10], xmm0
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
lea ecx, [ebp - 0x3c]
call fcn.00403070
lea ecx, [ebp - 0x1c]
call fcn.00403070
push 9
xor eax, eax
mov dword [ebp - 0xc], 0
push str.edit_icon
lea ecx, [ebp - 0x1c]
mov dword [ebp - 8], 7
mov word [ebp - 0x1c], ax
call fcn.00402e60
mov esi, dword [ebx]
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x1c]
mov ecx, edi
push eax
call fcn.00427880
mov ecx, eax
call fcn.0044bcc0
mov dword [ebp + 8], eax
lea eax, [esi + 0x6c]
mov esi, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp eax, esi
je 0x4951ad
mov ecx, eax
call fcn.00403070
movups xmm0, xmmword [esi]
mov eax, dword [ebp - 4]
movups xmmword [eax], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [eax + 0x10], xmm0
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
lea ecx, [ebp - 0x3c]
call fcn.00403070
lea ecx, [ebp - 0x1c]
call fcn.00403070
push 0xa
xor eax, eax
mov dword [ebp - 0xc], 0
push str.edit_param
lea ecx, [ebp - 0x1c]
mov dword [ebp - 8], 7
mov word [ebp - 0x1c], ax
call fcn.00402e60
mov esi, dword [ebx]
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x1c]
mov ecx, edi
push eax
call fcn.00427880
mov ecx, eax
call fcn.0044bcc0
mov dword [ebp + 8], eax
lea eax, [esi + 0x84]
mov esi, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp eax, esi
je 0x495238
mov ecx, eax
call fcn.00403070
movups xmm0, xmmword [esi]
mov eax, dword [ebp - 4]
movups xmmword [eax], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [eax + 0x10], xmm0
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
lea ecx, [ebp - 0x3c]
call fcn.00403070
lea ecx, [ebp - 0x1c]
call fcn.00403070
push 8
xor eax, eax
mov dword [ebp - 0xc], 0
push str.edit_dir
lea ecx, [ebp - 0x1c]
mov dword [ebp - 8], 7
mov word [ebp - 0x1c], ax
call fcn.00402e60
mov esi, dword [ebx]
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x1c]
mov ecx, edi
push eax
call fcn.00427880
mov ecx, eax
call fcn.0044bcc0
mov dword [ebp + 8], eax
lea eax, [esi + 0x9c]
mov esi, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp eax, esi
je 0x4952c3
mov ecx, eax
call fcn.00403070
movups xmm0, xmmword [esi]
mov eax, dword [ebp - 4]
movups xmmword [eax], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [eax + 0x10], xmm0
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
lea ecx, [ebp - 0x3c]
call fcn.00403070
lea ecx, [ebp - 0x1c]
call fcn.00403070
push 0xa
xor eax, eax
mov dword [ebp - 0xc], 0
push str.edit_admin
lea ecx, [ebp - 0x1c]
mov dword [ebp - 8], 7
mov word [ebp - 0x1c], ax
call fcn.00402e60
lea eax, [ebp - 0x1c]
mov ecx, edi
push eax
call fcn.00427880
mov ecx, dword [ebx]
mov al, byte [eax + 0x3b4]
mov byte [ecx + 0xc0], al
lea ecx, [ebp - 0x1c]
call fcn.00403070
push 0xb
xor eax, eax
mov dword [ebp - 0xc], 0
push str.edit_remark
lea ecx, [ebp - 0x1c]
mov dword [ebp - 8], 7
mov word [ebp - 0x1c], ax
call fcn.00402e60
mov esi, dword [ebx]
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x1c]
mov ecx, edi
push eax
call fcn.00427880
mov ecx, eax
call fcn.0044bcc0
mov dword [ebp + 8], eax
lea eax, [esi + 0xdc]
mov esi, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp eax, esi
je 0x495392
mov ecx, eax
call fcn.00403070
movups xmm0, xmmword [esi]
mov eax, dword [ebp - 4]
movups xmmword [eax], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [eax + 0x10], xmm0
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
lea ecx, [ebp - 0x3c]
call fcn.00403070
lea ecx, [ebp - 0x1c]
call fcn.00403070
mov esi, dword [ebx]
lea eax, [esi + 0xdc]
push eax
lea eax, [ebp - 0x6c]
push eax
call fcn.00474970
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.00401570
mov dword [ebp + 8], eax
add esp, 0x10
lea eax, [esi + 0xf4]
mov esi, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp eax, esi
je 0x495401
mov ecx, eax
call fcn.00403070
movups xmm0, xmmword [esi]
mov eax, dword [ebp - 4]
movups xmmword [eax], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [eax + 0x10], xmm0
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
lea ecx, [ebp - 0x3c]
call fcn.00403070
lea ecx, [ebp - 0x6c]
call fcn.00403070
mov eax, dword [ebx]
cmp word [eax + 0xb8], 0
je 0x49542a
push ebx
call fcn.004787a0
mov ecx, eax
call fcn.00478b20
push 0xb
xor eax, eax
mov dword [ebp - 0xc], 0
push str.edit_hotkey
lea ecx, [ebp - 0x1c]
mov dword [ebp - 8], 7
mov word [ebp - 0x1c], ax
call fcn.00402e60
lea eax, [ebp - 0x1c]
mov ecx, edi
push eax
call fcn.00427880
mov cx, word [eax + 0x750]
shl cx, 8
or cx, word [eax + 0x74c]
mov eax, dword [ebx]
mov word [eax + 0xb8], cx
lea ecx, [ebp - 0x1c]
call fcn.00403070
mov eax, dword [ebx]
cmp word [eax + 0xb8], 0
je 0x49555c
call fcn.004787a0
mov ecx, dword [ebx]
mov edx, eax
mov dword [ebp + 8], edx
mov eax, dword [ecx + 0xbc]
test eax, eax
je 0x4954bd
push eax
push dword [edx]
call dword [sym.imp.USER32.dll_UnregisterHotKey]
mov edx, dword [ebp + 8]
test eax, eax
je 0x4954bd
mov eax, dword [ebx]
mov dword [eax + 0xbc], 0
mov ecx, dword [ebx]
movzx esi, word [ecx + 0xb8]
test si, si
je 0x49555c
mov eax, dword [ebx + 4]
test eax, eax
je 0x4954df
lock inc dword [eax + 8]
mov ecx, dword [ebx]
mov eax, dword [ebx + 4]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], ecx
lea ecx, [edx + 4]
push eax
call fcn.0047bd60
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x495507
or eax, 0xffffffff
lock xadd dword [ecx + 8], eax
jne 0x495507
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, esi
movzx ecx, al
shr eax, 8
mov dword [ebp - 0x20], eax
mov eax, dword [ebx]
add eax, 0x18
mov dword [ebp - 4], ecx
cmp dword [eax + 0x14], 8
jb 0x495522
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalAddAtomW]
movzx esi, ax
sub esi, 0xc000
je 0x49555c
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x49555c
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x49555c
push ecx
push eax
mov eax, dword [ebp + 8]
push esi
push dword [eax]
call dword [sym.imp.USER32.dll_RegisterHotKey]
test eax, eax
je 0x49555c
mov eax, dword [ebx]
mov dword [eax + 0xbc], esi
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax + 0x10]
lea ecx, [ebp - 0x54]
mov bl, 1
call fcn.00403070
jmp 0x495a66
lea eax, [ebp - 0x54]
push eax
call fcn.00408870
add esp, 4
test eax, eax
jne 0x494f83
push 0x40010
push 0x57f650
push 0x57f658
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [ebp - 0x54]
xor bl, bl
call fcn.00403070
jmp 0x495a66
lea eax, [ebp - 0xa8]
push str.btn_cancel
push eax
call fcn.00407240
add esp, 8
test al, al
je 0x4955d3
mov eax, dword [edi]
mov ecx, edi
push 2
call dword [eax + 0x10]
jmp 0x495a64
lea eax, [ebp - 0xa8]
push str.closebtn
push eax
call fcn.00407240
add esp, 8
test al, al
je 0x4955f9
mov eax, dword [edi]
mov ecx, edi
push 0
call dword [eax + 0x10]
jmp 0x495a64
lea eax, [ebp - 0xa8]
push str.btn_path
push eax
call fcn.00407240
add esp, 8
test al, al
je 0x49572f
push 0x208
lea eax, [ebp - 0x308]
push 0
push eax
call sub.msvcrt.dll_memset
push 0x58
lea eax, [ebp - 0x100]
push 0
push eax
call sub.msvcrt.dll_memset
mov eax, dword [edi + 0x10]
mov ecx, dword [edi + 0x258]
mov dword [ebp - 0xfc], eax
lea eax, [ebp - 0x308]
push esp
mov dword [ebp - 0x100], 0x58
mov dword [ebp - 0xf4], str._b_tg
mov dword [ebp - 0xe8], 1
mov dword [ebp - 0xe4], eax
mov dword [ebp - 0xe0], 0x104
call fcn.0048a8d0
lea eax, [ebp - 0x90]
push eax
call fcn.0048a700
add esp, 0x1c
mov dword [ebp - 0xcc], 0x81800
cmp dword [ebp - 0x7c], 8
lea eax, [ebp - 0x90]
cmovae eax, dword [ebp - 0x90]
mov dword [ebp - 0xd4], eax
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.COMDLG32.dll_GetOpenFileNameW]
test eax, eax
je 0x495704
lea eax, [ebp - 0x308]
push eax
lea ecx, [ebp - 0x3c]
call fcn.00402fa0
push str.edit_url
lea ecx, [ebp - 0x6c]
call fcn.00402fa0
lea eax, [ebp - 0x3c]
mov ecx, edi
push eax
lea eax, [ebp - 0x6c]
push eax
call fcn.00427880
mov ecx, eax
call fcn.0044be70
lea ecx, [ebp - 0x6c]
call fcn.00403070
lea ecx, [ebp - 0x3c]
call fcn.00403070
lea eax, [ebp - 0x1c]
push eax
call fcn.00450d40
add esp, 4
lea eax, [ebp - 0x1c]
cmp dword [ebp - 8], 8
cmovae eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea ecx, [ebp - 0x1c]
call fcn.00403070
jmp 0x495a59
lea eax, [ebp - 0xa8]
push str.btn_icon
push eax
call fcn.00407240
add esp, 8
test al, al
je 0x495928
push 0x26c
call fcn.00531cfc
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4957c7
mov dword [ebx + 8], 0x57f1c0
mov ecx, ebx
mov dword [ebx + method.nbase::SupportWeakCallback.virtual_0], vtable.nbase::SupportWeakCallback.0
push 0
mov dword [ebx + 0x264], 0
mov dword [ebx + 0x268], 0
call fcn.00437fa0
mov eax, dword [ebx + 8]
mov dword [ebx], vtable.CIconWnd.0
mov dword [ebx + method.CHideWnd.virtual_60], vtable.CIconWnd.1.0
mov dword [ebp - 4], 2
mov eax, dword [eax + 4]
mov dword [eax + ebx + 8], vtable.CIconWnd.2.0
mov dword [ebx + 0x258], 0
mov dword [ebx + 0x25c], 0
jmp 0x4957c9
xor ebx, ebx
push 0x18
call fcn.00531cfc
mov esi, eax
add esp, 4
test esi, esi
je 0x495801
push str.edit_icon
lea ecx, [ebp - 0x3c]
call fcn.00402fa0
or dword [ebp - 4], 1
lea eax, [ebp - 0x3c]
push esi
push eax
mov ecx, edi
call fcn.00427880
mov ecx, eax
call fcn.0044bcc0
mov esi, eax
jmp 0x495803
xor esi, esi
test byte [ebp - 4], 1
je 0x495811
lea ecx, [ebp - 0x3c]
call fcn.00403070
push dword [ebp + 8]
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x24], 0
push esi
mov dword [ebp - 0x20], 0
call fcn.00485280
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x495836
lock inc dword [eax + 4]
mov ecx, dword [ebp - 0x24]
mov dword [ebx + 0x258], ecx
mov esi, dword [ebx + 0x25c]
mov dword [ebx + 0x25c], eax
test esi, esi
je 0x495870
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
jne 0x495870
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
jne 0x495870
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov eax, dword [ebx]
lea ecx, [ebp - 0x3c]
xorps xmm0, xmm0
push ecx
mov ecx, ebx
movups xmmword [ebp - 0x14], xmm0
call dword [eax]
cmp dword [eax + 0x14], 8
jb 0x495889
mov eax, dword [eax]
mov esi, dword [ebx]
lea ecx, [ebp - 0x14]
push ecx
push 1
push 0x80
push 0x80000000
push eax
mov ecx, edi
call fcn.00423fd0
push eax
mov ecx, ebx
call dword [esi + 0xc]
lea ecx, [ebp - 0x3c]
call fcn.00403070
mov ecx, ebx
call fcn.00424760
mov ecx, ebx
call fcn.00424670
cmp eax, 1
je 0x4958f1
mov ecx, ebx
call fcn.004277a0
push eax
mov ecx, ebx
call fcn.00424e80
mov eax, dword [ebx + 8]
push 1
mov ecx, dword [eax + 4]
add ecx, 8
add ecx, ebx
mov eax, dword [ecx]
call dword [eax]
lea ecx, [ebp - 0x24]
call fcn.00471910
jmp 0x495a64
push str.edit_icon
lea ecx, [ebp - 0x3c]
call fcn.00402fa0
push dword [ebp - 0x24]
lea eax, [ebp - 0x3c]
mov ecx, edi
push eax
call fcn.00427880
mov ecx, eax
call fcn.0044be70
lea ecx, [ebp - 0x3c]
call fcn.00403070
lea ecx, [ebp - 0x24]
call fcn.00471910
jmp 0x495a64
lea eax, [ebp - 0xa8]
push str.btn_color
push eax
call fcn.00407240
add esp, 8
test al, al
je 0x4959f8
mov eax, dword [edi + 0x10]
xorps xmm0, xmm0
mov dword [ebp - 0x74], eax
mov eax, dword [0x5b9a18]
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x78]
push eax
mov dword [ebp - 0x70], 0
movlpd qword [ebp - 0x60], xmm0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x78], 0x24
mov dword [ebp - 0x68], 0x5b99d8
mov dword [ebp - 0x64], 0x103
call dword [sym.imp.COMDLG32.dll_ChooseColorW]
test eax, eax
je 0x495a64
mov ecx, dword [ebp - 0x6c]
movzx esi, cl
or esi, 0xffffff00
movzx eax, cx
shr eax, 8
shl esi, 8
or esi, eax
mov dword [0x5b9a18], ecx
shr ecx, 0x10
movzx eax, cl
shl esi, 8
or esi, eax
lea eax, [ebp - 0x3c]
push esi
push str._08x
push eax
call fcn.004014d0
mov ecx, dword [edi + 0x260]
add esp, 0xc
push eax
call fcn.0044be70
lea ecx, [ebp - 0x3c]
call fcn.00403070
mov ecx, dword [edi + 0x260]
push esi
call fcn.0044bc70
mov ecx, dword [edi + 0x260]
push 0
mov eax, dword [ecx]
call dword [eax + 0x2c]
jmp 0x495a64
mov ecx, dword [esi + 4]
lea eax, [ebp - 0x90]
push eax
call fcn.0042b9c0
lea eax, [ebp - 0x90]
push eax
call fcn.00408870
mov esi, eax
lea eax, [ebp - 0x3c]
push esi
push str._08x
push eax
call fcn.004014d0
add esp, 0x10
lea ecx, [ebp - 0x90]
push eax
call fcn.0040fa80
lea ecx, [ebp - 0x3c]
call fcn.00403070
mov ecx, dword [edi + 0x260]
lea eax, [ebp - 0x90]
push eax
call fcn.0044be70
mov ecx, dword [edi + 0x260]
push esi
call fcn.0044bc70
lea ecx, [ebp - 0x90]
call fcn.00403070
mov bl, 1
mov edx, dword [ebp - 0x94]
cmp edx, 8
jb 0x495aa2
mov ecx, dword [ebp - 0xa8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x495a98
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x495aad
push edx
push ecx
call fcn.00531d2c
add esp, 8
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 4
call fcn.0055e070
int3