Function at 0x495030
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2e4
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x6c]
push edi
mov ebx, ecx
mov dword [ebp - 4], 0
push eax
mov ecx, dword [esi + 4]
call fcn.00429ec0
lea eax, [ebp - 0x6c]
push str.btn_ok
push eax
call fcn.00407200
add esp, 8
test al, al
je 0x495730
push 0xa
xor eax, eax
mov dword [ebp - 0xc], 0
push str.edit_color
lea ecx, [ebp - 0x1c]
mov dword [ebp - 8], 7
mov word [ebp - 0x1c], ax
call fcn.00402e60
lea eax, [ebp - 0x54]
mov ecx, ebx
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.004270b0
mov ecx, eax
call fcn.0044b580
lea ecx, [ebp - 0x1c]
call fcn.00403070
mov edx, dword [ebp - 0x44]
test edx, edx
je 0x495112
mov esi, dword [ebp - 0x40]
lea eax, [ebp - 0x54]
mov edi, dword [ebp - 0x54]
cmp esi, 8
cmovae eax, edi
cmp word [eax], 0x23
jne 0x49570a
cmp edx, 9
jne 0x49570a
mov eax, dword [ebx + 0x258]
lea edx, [ebp - 0x54]
lea ecx, [eax + 0xc4]
cmp ecx, edx
je 0x495100
cmp esi, 8
mov eax, edx
push 9
cmovae eax, edi
push eax
call fcn.00402e60
mov eax, dword [ebx + 0x258]
add eax, 0xc4
push eax
push eax
call fcn.00408570
mov edx, dword [ebp - 0x44]
add esp, 8
mov ecx, dword [ebx + 0x258]
lea edi, [ebx + 0x258]
add ecx, 0xc4
lea eax, [ebp - 0x54]
cmp ecx, eax
je 0x49513a
cmp dword [ebp - 0x40], 8
push edx
cmovae eax, dword [ebp - 0x54]
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.0044b580
mov dword [ebp + 8], eax
lea eax, [esi + 0x18]
mov esi, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp eax, esi
je 0x4951b2
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 - 0x84]
push eax
call fcn.00476870
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 0x49521e
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 - 0x84]
call fcn.00403070
mov eax, dword [edi]
cmp dword [eax + 0x14], 7
je 0x4952c5
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.0044b580
mov dword [ebp + 8], eax
lea eax, [esi + 0x48]
mov esi, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp eax, esi
je 0x4952b5
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.0044b580
mov dword [ebp + 8], eax
lea eax, [esi + 0x6c]
mov esi, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp eax, esi
je 0x49533d
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.0044b580
mov dword [ebp + 8], eax
lea eax, [esi + 0x84]
mov esi, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp eax, esi
je 0x4953c8
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.0044b580
mov dword [ebp + 8], eax
lea eax, [esi + 0x9c]
mov esi, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp eax, esi
je 0x495453
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.0044b580
mov dword [ebp + 8], eax
lea eax, [esi + 0xdc]
mov esi, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp eax, esi
je 0x495522
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 - 0x84]
push eax
call fcn.00476870
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 0x495594
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 - 0x84]
call fcn.00403070
mov eax, dword [edi]
cmp word [eax + 0xb8], 0
je 0x4955c0
push edi
call fcn.0047a580
mov ecx, eax
call fcn.0047a750
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 + 0x74c]
shl cx, 8
or cx, word [eax + 0x748]
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 0x4956f2
call fcn.0047a580
mov ecx, dword [edi]
mov edx, eax
mov dword [ebp + 8], edx
mov eax, dword [ecx + 0xbc]
test eax, eax
je 0x495653
push eax
push dword [edx]
call dword [sym.imp.USER32.dll_UnregisterHotKey]
mov edx, dword [ebp + 8]
test eax, eax
je 0x495653
mov eax, dword [edi]
mov dword [eax + 0xbc], 0
mov ecx, dword [edi]
movzx esi, word [ecx + 0xb8]
test si, si
je 0x4956f2
mov eax, dword [edi + 4]
test eax, eax
je 0x495675
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.0047d820
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x49569d
or eax, 0xffffffff
lock xadd dword [ecx + 8], eax
jne 0x49569d
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 0x4956b8
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalAddAtomW]
movzx esi, ax
sub esi, 0xc000
je 0x4956f2
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x4956f2
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x4956f2
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 0x4956f2
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 0x495adb
push 0x40010
push 0x57e15c
push 0x57e164
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [ebp - 0x54]
xor bl, bl
call fcn.00403070
jmp 0x495adb
lea eax, [ebp - 0x6c]
push str.btn_cancel
push eax
call fcn.00407200
add esp, 8
test al, al
je 0x495753
mov eax, dword [ebx]
mov ecx, ebx
push 2
call dword [eax + 0x10]
jmp 0x495ad9
lea eax, [ebp - 0x6c]
push str.btn_path
push eax
call fcn.00407200
add esp, 8
test al, al
je 0x495858
push 0x208
lea eax, [ebp - 0x2e4]
push 0
push eax
call sub.msvcrt.dll_memset
push 0x58
lea eax, [ebp - 0xdc]
push 0
push eax
call sub.msvcrt.dll_memset
mov eax, dword [ebx + 0x10]
add esp, 0x18
mov dword [ebp - 0xd8], eax
lea eax, [ebp - 0x2e4]
mov dword [ebp - 0xc0], eax
lea eax, [ebp - 0xdc]
mov dword [ebp - 0xdc], 0x58
push eax
mov dword [ebp - 0xd0], str._b_tg
mov dword [ebp - 0xc4], 1
mov dword [ebp - 0xbc], 0x104
mov dword [ebp - 0xa8], 0x81800
call dword [sym.imp.COMDLG32.dll_GetOpenFileNameW]
test eax, eax
je 0x495835
lea eax, [ebp - 0x2e4]
push eax
lea ecx, [ebp - 0x3c]
call fcn.00402fa0
push str.edit_url
lea ecx, [ebp - 0x84]
call fcn.00402fa0
lea eax, [ebp - 0x3c]
mov ecx, ebx
push eax
lea eax, [ebp - 0x84]
push eax
call fcn.004270b0
mov ecx, eax
call fcn.0044b740
lea ecx, [ebp - 0x84]
call fcn.00403070
lea ecx, [ebp - 0x3c]
call fcn.00403070
lea eax, [ebp - 0x1c]
push eax
call fcn.00450ba0
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]
jmp 0x495ad1
lea eax, [ebp - 0x6c]
push str.btn_icon
push eax
call fcn.00407200
add esp, 8
test al, al
je 0x495a4e
push 0x26c
call fcn.005313dc
mov edi, eax
add esp, 4
test edi, edi
je 0x4958ed
mov dword [edi + 8], 0x57dd90
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.004389a0
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 0x4958ef
xor edi, edi
push 0x18
call fcn.005313dc
mov esi, eax
add esp, 4
test esi, esi
je 0x495927
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.0044b580
mov esi, eax
jmp 0x495929
xor esi, esi
test byte [ebp - 4], 1
je 0x495937
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.00486770
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x49595c
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 0x495996
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
jne 0x495996
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
jne 0x495996
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 0x4959af
mov eax, dword [eax]
mov esi, dword [edi]
lea ecx, [ebp - 0x14]
push ecx
push 0
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 0x495a17
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 0x495ad9
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.0044b740
lea ecx, [ebp - 0x3c]
call fcn.00403070
lea ecx, [ebp - 0x24]
call fcn.00407100
jmp 0x495ad9
lea eax, [ebp - 0x6c]
push str.closebtn
push eax
call fcn.00407200
add esp, 8
test al, al
je 0x495a6e
mov eax, dword [ebx]
mov ecx, ebx
push 0
call dword [eax + 0x10]
jmp 0x495ad9
mov ecx, dword [esi + 4]
lea eax, [ebp - 0x1c]
push eax
call fcn.0042b440
lea eax, [ebp - 0x1c]
push eax
call fcn.004087c0
push eax
lea eax, [ebp - 0x3c]
push str._08x
push eax
call fcn.004014d0
add esp, 0x10
lea ecx, [ebp - 0x1c]
push eax
call fcn.0040f730
lea ecx, [ebp - 0x3c]
call fcn.00403070
push str.edit_color
lea ecx, [ebp - 0x3c]
call fcn.00402fa0
lea eax, [ebp - 0x1c]
mov ecx, ebx
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.004270b0
mov ecx, eax
call fcn.0044b740
lea ecx, [ebp - 0x3c]
call fcn.00403070
lea ecx, [ebp - 0x1c]
call fcn.00403070
mov bl, 1
mov edx, dword [ebp - 0x58]
cmp edx, 8
jb 0x495b11
mov ecx, dword [ebp - 0x6c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x495b07
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x495b1c
push edx
push ecx
call fcn.0053140c
add esp, 8
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 4
call fcn.0055d660
int3