Function at 0x497600
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 0x497cdd
mov ecx, dword [edi + 0x260]
lea eax, [ebp - 0x54]
push eax
call fcn.0044ddf0
mov ecx, dword [ebp - 0x44]
test ecx, ecx
je 0x4976b6
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 0x497ca4
cmp ecx, 9
jne 0x497ca4
mov eax, dword [edi + 0x258]
lea ebx, [ebp - 0x54]
lea ecx, [eax + 0xc4]
cmp ecx, ebx
je 0x4976a4
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 0x4976e0
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 0x497758
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 0x4977c1
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 0x497865
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 0x497855
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 0x4978dd
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 0x497968
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 0x4979f3
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 0x497ac2
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 0x497b31
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 0x497b5a
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 0x497c8c
call fcn.0047acf0
mov ecx, dword [ebx]
mov edx, eax
mov dword [ebp + 8], edx
mov eax, dword [ecx + 0xbc]
test eax, eax
je 0x497bed
push eax
push dword [edx]
call dword [sym.imp.USER32.dll_UnregisterHotKey]
mov edx, dword [ebp + 8]
test eax, eax
je 0x497bed
mov eax, dword [ebx]
mov dword [eax + 0xbc], 0
mov ecx, dword [ebx]
movzx esi, word [ecx + 0xb8]
test si, si
je 0x497c8c
mov eax, dword [ebx + 4]
test eax, eax
je 0x497c0f
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.0047e4f0
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x497c37
or eax, 0xffffffff
lock xadd dword [ecx + 8], eax
jne 0x497c37
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 0x497c52
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalAddAtomW]
movzx esi, ax
sub esi, 0xc000
je 0x497c8c
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x497c8c
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x497c8c
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 0x497c8c
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 0x498196
lea eax, [ebp - 0x54]
push eax
call fcn.004087c0
add esp, 4
test eax, eax
jne 0x4976b3
push 0x40010
push 0x5826b8
push 0x5826c0
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [ebp - 0x54]
xor bl, bl
call fcn.00403070
jmp 0x498196
lea eax, [ebp - 0xa8]
push str.btn_cancel
push eax
call fcn.00407200
add esp, 8
test al, al
je 0x497d03
mov eax, dword [edi]
mov ecx, edi
push 2
call dword [eax + 0x10]
jmp 0x498194
lea eax, [ebp - 0xa8]
push str.closebtn
push eax
call fcn.00407200
add esp, 8
test al, al
je 0x497d29
mov eax, dword [edi]
mov ecx, edi
push 0
call dword [eax + 0x10]
jmp 0x498194
lea eax, [ebp - 0xa8]
push str.btn_path
push eax
call fcn.00407200
add esp, 8
test al, al
je 0x497e5f
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.0048cfb0
lea eax, [ebp - 0x90]
push eax
call fcn.0048cde0
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 0x497e34
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 0x498189
lea eax, [ebp - 0xa8]
push str.btn_icon
push eax
call fcn.00407200
add esp, 8
test al, al
je 0x498058
push 0x26c
call fcn.0053488c
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x497ef7
mov dword [ebx + 8], 0x582228
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 0x497ef9
xor ebx, ebx
push 0x18
call fcn.0053488c
mov esi, eax
add esp, 4
test esi, esi
je 0x497f31
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 0x497f33
xor esi, esi
test byte [ebp - 4], 1
je 0x497f41
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.004879f0
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x497f66
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 0x497fa0
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
jne 0x497fa0
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
jne 0x497fa0
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 0x497fb9
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 0x498021
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 0x498194
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 0x498194
lea eax, [ebp - 0xa8]
push str.btn_color
push eax
call fcn.00407200
add esp, 8
test al, al
je 0x498128
mov eax, dword [edi + 0x10]
xorps xmm0, xmm0
mov dword [ebp - 0x74], eax
mov eax, dword [0x5bca28]
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], 0x5bc9e8
mov dword [ebp - 0x64], 0x103
call dword [sym.imp.COMDLG32.dll_ChooseColorW]
test eax, eax
je 0x498194
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 [0x5bca28], 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 0x498194
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 0x4981d2
mov ecx, dword [ebp - 0xa8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4981c8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4981dd
push edx
push ecx
call fcn.005348bc
add esp, 8
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 4
call fcn.00560be0
int3