Function at 0x496510
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2fc
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x84]
push edi
mov ebx, ecx
mov dword [ebp - 4], 0
push eax
mov ecx, dword [esi + 4]
call fcn.00429d80
lea eax, [ebp - 0x84]
push str.btn_ok
push eax
call fcn.00407200
add esp, 8
test al, al
je 0x496bf9
mov ecx, dword [ebx + 0x260]
lea eax, [ebp - 0x54]
push eax
call fcn.0044db40
mov ecx, dword [ebp - 0x44]
test ecx, ecx
je 0x4965c6
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 0x496bc0
cmp ecx, 9
jne 0x496bc0
mov eax, dword [ebx + 0x258]
lea edi, [ebp - 0x54]
lea ecx, [eax + 0xc4]
cmp ecx, edi
je 0x4965b4
cmp edx, 8
mov eax, edi
push 9
cmovae eax, esi
push eax
call fcn.00402e60
mov eax, dword [ebx + 0x258]
add eax, 0xc4
push eax
push eax
call fcn.00408570
add esp, 8
mov ecx, dword [ebp - 0x44]
mov edx, dword [ebx + 0x258]
lea edi, [ebx + 0x258]
add edx, 0xc4
lea eax, [ebp - 0x54]
cmp edx, eax
je 0x4965f0
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 [edi]
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x1c]
mov ecx, ebx
push eax
call fcn.004270b0
mov ecx, eax
call fcn.0044db40
mov dword [ebp + 8], eax
lea eax, [esi + 0x18]
mov esi, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp eax, esi
je 0x496668
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 [edi]
lea eax, [esi + 0x18]
push eax
lea eax, [ebp - 0x9c]
push eax
call fcn.00476ab0
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 0x4966d4
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 - 0x9c]
call fcn.00403070
mov eax, dword [edi]
cmp dword [eax + 0x14], 7
je 0x49677b
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 [edi]
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x1c]
mov ecx, ebx
push eax
call fcn.004270b0
mov ecx, eax
call fcn.0044db40
mov dword [ebp + 8], eax
lea eax, [esi + 0x48]
mov esi, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp eax, esi
je 0x49676b
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 [edi]
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x1c]
mov ecx, ebx
push eax
call fcn.004270b0
mov ecx, eax
call fcn.0044db40
mov dword [ebp + 8], eax
lea eax, [esi + 0x6c]
mov esi, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp eax, esi
je 0x4967f3
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 [edi]
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x1c]
mov ecx, ebx
push eax
call fcn.004270b0
mov ecx, eax
call fcn.0044db40
mov dword [ebp + 8], eax
lea eax, [esi + 0x84]
mov esi, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp eax, esi
je 0x49687e
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 [edi]
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x1c]
mov ecx, ebx
push eax
call fcn.004270b0
mov ecx, eax
call fcn.0044db40
mov dword [ebp + 8], eax
lea eax, [esi + 0x9c]
mov esi, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp eax, esi
je 0x496909
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, ebx
push eax
call fcn.004270b0
mov ecx, dword [edi]
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 [edi]
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x1c]
mov ecx, ebx
push eax
call fcn.004270b0
mov ecx, eax
call fcn.0044db40
mov dword [ebp + 8], eax
lea eax, [esi + 0xdc]
mov esi, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp eax, esi
je 0x4969d8
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 [edi]
lea eax, [esi + 0xdc]
push eax
lea eax, [ebp - 0x9c]
push eax
call fcn.00476ab0
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 0x496a4a
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 - 0x9c]
call fcn.00403070
mov eax, dword [edi]
cmp word [eax + 0xb8], 0
je 0x496a76
push edi
call fcn.0047a7f0
mov ecx, eax
call fcn.0047ab40
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, ebx
push eax
call fcn.004270b0
mov cx, word [eax + 0x754]
shl cx, 8
or cx, word [eax + 0x750]
mov eax, dword [edi]
mov word [eax + 0xb8], cx
lea ecx, [ebp - 0x1c]
call fcn.00403070
mov eax, dword [edi]
cmp word [eax + 0xb8], 0
je 0x496ba8
call fcn.0047a7f0
mov ecx, dword [edi]
mov edx, eax
mov dword [ebp + 8], edx
mov eax, dword [ecx + 0xbc]
test eax, eax
je 0x496b09
push eax
push dword [edx]
call dword [sym.imp.USER32.dll_UnregisterHotKey]
mov edx, dword [ebp + 8]
test eax, eax
je 0x496b09
mov eax, dword [edi]
mov dword [eax + 0xbc], 0
mov ecx, dword [edi]
movzx esi, word [ecx + 0xb8]
test si, si
je 0x496ba8
mov eax, dword [edi + 4]
test eax, eax
je 0x496b2b
lock inc dword [eax + 8]
mov ecx, dword [edi]
mov eax, dword [edi + 4]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], ecx
lea ecx, [edx + 4]
push eax
call fcn.0047dc20
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x496b53
or eax, 0xffffffff
lock xadd dword [ecx + 8], eax
jne 0x496b53
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 [edi]
add eax, 0x18
mov dword [ebp - 4], ecx
cmp dword [eax + 0x14], 8
jb 0x496b6e
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalAddAtomW]
movzx esi, ax
sub esi, 0xc000
je 0x496ba8
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x496ba8
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x496ba8
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 0x496ba8
mov eax, dword [edi]
mov dword [eax + 0xbc], esi
mov eax, dword [ebx]
mov ecx, ebx
push 1
call dword [eax + 0x10]
lea ecx, [ebp - 0x54]
mov bl, 1
call fcn.00403070
jmp 0x496fd0
lea eax, [ebp - 0x54]
push eax
call fcn.004087c0
add esp, 4
test eax, eax
jne 0x4965c3
push 0x40010
push 0x5804b4
push 0x5804bc
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [ebp - 0x54]
xor bl, bl
call fcn.00403070
jmp 0x496fd0
lea eax, [ebp - 0x84]
push str.btn_cancel
push eax
call fcn.00407200
add esp, 8
test al, al
je 0x496c1f
mov eax, dword [ebx]
mov ecx, ebx
push 2
call dword [eax + 0x10]
jmp 0x496fce
lea eax, [ebp - 0x84]
push str.btn_path
push eax
call fcn.00407200
add esp, 8
test al, al
je 0x496d55
push 0x208
lea eax, [ebp - 0x2fc]
push 0
push eax
call sub.msvcrt.dll_memset
push 0x58
lea eax, [ebp - 0xf4]
push 0
push eax
call sub.msvcrt.dll_memset
mov eax, dword [ebx + 0x10]
mov ecx, dword [ebx + 0x258]
mov dword [ebp - 0xf0], eax
lea eax, [ebp - 0x2fc]
push esp
mov dword [ebp - 0xf4], 0x58
mov dword [ebp - 0xe8], str._b_tg
mov dword [ebp - 0xdc], 1
mov dword [ebp - 0xd8], eax
mov dword [ebp - 0xd4], 0x104
call fcn.0048c560
lea eax, [ebp - 0x6c]
push eax
call fcn.0048c390
add esp, 0x1c
mov dword [ebp - 0xc0], 0x81800
cmp dword [ebp - 0x58], 8
lea eax, [ebp - 0x6c]
cmovae eax, dword [ebp - 0x6c]
mov dword [ebp - 0xc8], eax
lea eax, [ebp - 0xf4]
push eax
call dword [sym.imp.COMDLG32.dll_GetOpenFileNameW]
test eax, eax
je 0x496d2a
lea eax, [ebp - 0x2fc]
push eax
lea ecx, [ebp - 0x3c]
call fcn.00402fa0
push str.edit_url
lea ecx, [ebp - 0x9c]
call fcn.00402fa0
lea eax, [ebp - 0x3c]
mov ecx, ebx
push eax
lea eax, [ebp - 0x9c]
push eax
call fcn.004270b0
mov ecx, eax
call fcn.0044dd00
lea ecx, [ebp - 0x9c]
call fcn.00403070
lea ecx, [ebp - 0x3c]
call fcn.00403070
lea eax, [ebp - 0x1c]
push eax
call fcn.00453340
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 0x496fc6
lea eax, [ebp - 0x84]
push str.btn_icon
push eax
call fcn.00407200
add esp, 8
test al, al
je 0x496f4e
push 0x26c
call fcn.00532e0c
mov edi, eax
add esp, 4
test edi, edi
je 0x496ded
mov dword [edi + 8], 0x580038
mov ecx, edi
mov dword [edi + method.nbase::SupportWeakCallback.virtual_0], vtable.nbase::SupportWeakCallback.0
push 0
mov dword [edi + 0x264], 0
mov dword [edi + 0x268], 0
call fcn.004387e0
mov eax, dword [edi + 8]
mov dword [edi], vtable.CIconWnd.0
mov dword [edi + method.CHideWnd.virtual_60], vtable.CIconWnd.1.0
mov dword [ebp - 4], 2
mov eax, dword [eax + 4]
mov dword [eax + edi + 8], vtable.CIconWnd.2.0
mov dword [edi + 0x258], 0
mov dword [edi + 0x25c], 0
jmp 0x496def
xor edi, edi
push 0x18
call fcn.00532e0c
mov esi, eax
add esp, 4
test esi, esi
je 0x496e27
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, ebx
call fcn.004270b0
mov ecx, eax
call fcn.0044db40
mov esi, eax
jmp 0x496e29
xor esi, esi
test byte [ebp - 4], 1
je 0x496e37
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.00486fc0
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x496e5c
lock inc dword [eax + 4]
mov ecx, dword [ebp - 0x24]
mov dword [edi + 0x258], ecx
mov esi, dword [edi + 0x25c]
mov dword [edi + 0x25c], eax
test esi, esi
je 0x496e96
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
jne 0x496e96
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
jne 0x496e96
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov eax, dword [edi]
lea ecx, [ebp - 0x3c]
xorps xmm0, xmm0
push ecx
mov ecx, edi
movups xmmword [ebp - 0x14], xmm0
call dword [eax]
cmp dword [eax + 0x14], 8
jb 0x496eaf
mov eax, dword [eax]
mov esi, dword [edi]
lea ecx, [ebp - 0x14]
push ecx
push 1
push 0x80
push 0x80000000
push eax
mov ecx, ebx
call fcn.004237c0
push eax
mov ecx, edi
call dword [esi + 0xc]
lea ecx, [ebp - 0x3c]
call fcn.00403070
mov ecx, edi
call fcn.00423f80
mov ecx, edi
call fcn.00423e60
cmp eax, 1
je 0x496f17
mov ecx, edi
call fcn.00426fd0
push eax
mov ecx, edi
call fcn.00424690
mov eax, dword [edi + 8]
push 1
mov ecx, dword [eax + 4]
add ecx, 8
add ecx, edi
mov eax, dword [ecx]
call dword [eax]
lea ecx, [ebp - 0x24]
call fcn.00407100
jmp 0x496fce
push str.edit_icon
lea ecx, [ebp - 0x3c]
call fcn.00402fa0
push dword [ebp - 0x24]
lea eax, [ebp - 0x3c]
mov ecx, ebx
push eax
call fcn.004270b0
mov ecx, eax
call fcn.0044dd00
lea ecx, [ebp - 0x3c]
call fcn.00403070
lea ecx, [ebp - 0x24]
call fcn.00407100
jmp 0x496fce
lea eax, [ebp - 0x84]
push str.closebtn
push eax
call fcn.00407200
add esp, 8
test al, al
je 0x496f71
mov eax, dword [ebx]
mov ecx, ebx
push 0
call dword [eax + 0x10]
jmp 0x496fce
mov ecx, dword [esi + 4]
lea eax, [ebp - 0x6c]
push eax
call fcn.0042b300
lea eax, [ebp - 0x6c]
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 - 0x6c]
push eax
call fcn.0040f730
lea ecx, [ebp - 0x3c]
call fcn.00403070
mov ecx, dword [ebx + 0x260]
lea eax, [ebp - 0x6c]
push eax
call fcn.0044dd00
mov ecx, dword [ebx + 0x260]
push esi
call fcn.0044da80
lea ecx, [ebp - 0x6c]
call fcn.00403070
mov bl, 1
mov edx, dword [ebp - 0x70]
cmp edx, 8
jb 0x497009
mov ecx, dword [ebp - 0x84]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x496fff
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x497014
push edx
push ecx
call fcn.00532e3c
add esp, 8
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 4
call fcn.0055f150
int3