Function at 0x497370
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.00429e40
lea eax, [ebp - 0xa8]
push str.btn_ok
push eax
call fcn.00407200
add esp, 8
test al, al
je 0x497a4d
mov ecx, dword [edi + 0x260]
lea eax, [ebp - 0x54]
push eax
call fcn.0044ddf0
mov ecx, dword [ebp - 0x44]
test ecx, ecx
je 0x497426
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 0x497a14
cmp ecx, 9
jne 0x497a14
mov eax, dword [edi + 0x258]
lea ebx, [ebp - 0x54]
lea ecx, [eax + 0xc4]
cmp ecx, ebx
je 0x497414
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.00408570
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 0x497450
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.00427170
mov ecx, eax
call fcn.0044ddf0
mov dword [ebp + 8], eax
lea eax, [esi + 0x18]
mov esi, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp eax, esi
je 0x4974c8
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.00476ec0
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 0x497531
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 0x4975d5
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.00427170
mov ecx, eax
call fcn.0044ddf0
mov dword [ebp + 8], eax
lea eax, [esi + 0x48]
mov esi, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp eax, esi
je 0x4975c5
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.00427170
mov ecx, eax
call fcn.0044ddf0
mov dword [ebp + 8], eax
lea eax, [esi + 0x6c]
mov esi, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp eax, esi
je 0x49764d
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.00427170
mov ecx, eax
call fcn.0044ddf0
mov dword [ebp + 8], eax
lea eax, [esi + 0x84]
mov esi, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp eax, esi
je 0x4976d8
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.00427170
mov ecx, eax
call fcn.0044ddf0
mov dword [ebp + 8], eax
lea eax, [esi + 0x9c]
mov esi, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp eax, esi
je 0x497763
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.00427170
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.00427170
mov ecx, eax
call fcn.0044ddf0
mov dword [ebp + 8], eax
lea eax, [esi + 0xdc]
mov esi, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp eax, esi
je 0x497832
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.00476ec0
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 0x4978a1
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 0x4978ca
push ebx
call fcn.0047acf0
mov ecx, eax
call fcn.0047b070
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.00427170
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 0x4979fc
call fcn.0047acf0
mov ecx, dword [ebx]
mov edx, eax
mov dword [ebp + 8], edx
mov eax, dword [ecx + 0xbc]
test eax, eax
je 0x49795d
push eax
push dword [edx]
call dword [sym.imp.USER32.dll_UnregisterHotKey]
mov edx, dword [ebp + 8]
test eax, eax
je 0x49795d
mov eax, dword [ebx]
mov dword [eax + 0xbc], 0
mov ecx, dword [ebx]
movzx esi, word [ecx + 0xb8]
test si, si
je 0x4979fc
mov eax, dword [ebx + 4]
test eax, eax
je 0x49797f
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.0047e2b0
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x4979a7
or eax, 0xffffffff
lock xadd dword [ecx + 8], eax
jne 0x4979a7
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 0x4979c2
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalAddAtomW]
movzx esi, ax
sub esi, 0xc000
je 0x4979fc
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x4979fc
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x4979fc
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 0x4979fc
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 0x497f06
lea eax, [ebp - 0x54]
push eax
call fcn.004087c0
add esp, 4
test eax, eax
jne 0x497423
push 0x40010
push 0x581678
push 0x581680
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [ebp - 0x54]
xor bl, bl
call fcn.00403070
jmp 0x497f06
lea eax, [ebp - 0xa8]
push str.btn_cancel
push eax
call fcn.00407200
add esp, 8
test al, al
je 0x497a73
mov eax, dword [edi]
mov ecx, edi
push 2
call dword [eax + 0x10]
jmp 0x497f04
lea eax, [ebp - 0xa8]
push str.closebtn
push eax
call fcn.00407200
add esp, 8
test al, al
je 0x497a99
mov eax, dword [edi]
mov ecx, edi
push 0
call dword [eax + 0x10]
jmp 0x497f04
lea eax, [ebp - 0xa8]
push str.btn_path
push eax
call fcn.00407200
add esp, 8
test al, al
je 0x497bcf
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.0048cd20
lea eax, [ebp - 0x90]
push eax
call fcn.0048cb50
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 0x497ba4
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.00427170
mov ecx, eax
call fcn.0044dfb0
lea ecx, [ebp - 0x6c]
call fcn.00403070
lea ecx, [ebp - 0x3c]
call fcn.00403070
lea eax, [ebp - 0x1c]
push eax
call fcn.004535f0
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 0x497ef9
lea eax, [ebp - 0xa8]
push str.btn_icon
push eax
call fcn.00407200
add esp, 8
test al, al
je 0x497dc8
push 0x26c
call fcn.0053428c
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x497c67
mov dword [ebx + 8], 0x5811e8
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.004388b0
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 0x497c69
xor ebx, ebx
push 0x18
call fcn.0053428c
mov esi, eax
add esp, 4
test esi, esi
je 0x497ca1
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.00427170
mov ecx, eax
call fcn.0044ddf0
mov esi, eax
jmp 0x497ca3
xor esi, esi
test byte [ebp - 4], 1
je 0x497cb1
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.004877a0
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x497cd6
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 0x497d10
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
jne 0x497d10
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
jne 0x497d10
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 0x497d29
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.004237c0
push eax
mov ecx, ebx
call dword [esi + 0xc]
lea ecx, [ebp - 0x3c]
call fcn.00403070
mov ecx, ebx
call fcn.00423f80
mov ecx, ebx
call fcn.00423e60
cmp eax, 1
je 0x497d91
mov ecx, ebx
call fcn.00427090
push eax
mov ecx, ebx
call fcn.00424690
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.00407100
jmp 0x497f04
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.00427170
mov ecx, eax
call fcn.0044dfb0
lea ecx, [ebp - 0x3c]
call fcn.00403070
lea ecx, [ebp - 0x24]
call fcn.00407100
jmp 0x497f04
lea eax, [ebp - 0xa8]
push str.btn_color
push eax
call fcn.00407200
add esp, 8
test al, al
je 0x497e98
mov eax, dword [edi + 0x10]
xorps xmm0, xmm0
mov dword [ebp - 0x74], eax
mov eax, dword [0x5bba18]
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], 0x5bb9d8
mov dword [ebp - 0x64], 0x103
call dword [sym.imp.COMDLG32.dll_ChooseColorW]
test eax, eax
je 0x497f04
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 [0x5bba18], 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.0044dfb0
lea ecx, [ebp - 0x3c]
call fcn.00403070
mov ecx, dword [edi + 0x260]
push esi
call fcn.0044dd30
mov ecx, dword [edi + 0x260]
push 0
mov eax, dword [ecx]
call dword [eax + 0x2c]
jmp 0x497f04
mov ecx, dword [esi + 4]
lea eax, [ebp - 0x90]
push eax
call fcn.0042b3c0
lea eax, [ebp - 0x90]
push eax
call fcn.004087c0
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.0040f730
lea ecx, [ebp - 0x3c]
call fcn.00403070
mov ecx, dword [edi + 0x260]
lea eax, [ebp - 0x90]
push eax
call fcn.0044dfb0
mov ecx, dword [edi + 0x260]
push esi
call fcn.0044dd30
lea ecx, [ebp - 0x90]
call fcn.00403070
mov bl, 1
mov edx, dword [ebp - 0x94]
cmp edx, 8
jb 0x497f42
mov ecx, dword [ebp - 0xa8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x497f38
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x497f4d
push edx
push ecx
call fcn.005342bc
add esp, 8
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 4
call fcn.00560610
int3