Function at 0x496905
Capabilities:
Delete directory

Disassembly:
mov eax, 0x5658
call fcn.004e6b50
mov eax, dword [0x519bc0]
xor eax, esp
mov dword [esp + 0x5654], eax
mov eax, dword [esp + 0x565c]
push ebx
mov ebx, dword [esp + 0x566c]
push edi
mov edi, ecx
mov ecx, dword [esp + 0x5668]
mov dword [esp + 8], edi
mov dword [esp + 0xc], ebx
cmp ecx, 0x4e
jne 0x4970d1
mov ecx, dword [ebx + 8]
push ebp
xor ebp, ebp
xor eax, eax
lea ebx, [ebx]
cmp dword [eax + 0x517c24], ecx
je 0x496632
add eax, 4
cmp eax, 0x1c
jb 0x496620
jmp 0x496645
mov eax, dword [0x53f484]
push ebp
push ebp
push 0x8000
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [ebx + 8]
add eax, 0xb1
push esi
cmp eax, 0xb0
ja case.0x496660.174
movzx ecx, byte [eax + 0x497114]
jmp dword [ecx*4 + 0x4970e8]
mov ebp, dword [sym.imp.USER32.dll_GetKeyState]
push 0x10
call ebp
movzx esi, ax
shr esi, 0xf
push 0x12
and esi, 1
call ebp
movzx edi, ax
shr edi, 0xf
push 0x11
and edi, 1
call ebp
movzx ebp, ax
shr ebp, 0xf
and ebp, 1
cmp word [ebx + 0xc], 0x79
jne 0x4966ac
test esi, esi
jne 0x4966a3
test edi, edi
je 0x4966bc
mov ecx, dword [esp + 0x10]
call fcn.00493530
test esi, esi
jne case.0x496660.174
test edi, edi
jne case.0x496660.174
test ebp, ebp
jne case.0x496660.174
movzx eax, word [ebx + 0xc]
add eax, 0xfffffff7
cmp eax, 0x6b
ja case.0x496660.174
movzx edx, byte [eax + 0x4971e8]
jmp dword [edx*4 + 0x4971c8]
call fcn.004ea4fa
mov ecx, dword [esp + 0x10]
push 0
push 1
mov dword [0x56a9b8], eax
call fcn.00496150
call fcn.004ea4fa
mov dword [0x56a9b8], eax
jmp case.0x496660.174
mov ecx, dword [esp + 0x10]
call fcn.004934a0
jmp case.0x496660.174
mov eax, dword [0x53f484]
push 0
push 0xb4
push 0x111
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
jmp case.0x496660.174
mov ecx, dword [esp + 0x10]
call fcn.00490ae0
jmp case.0x496660.174
mov ecx, 0x549cb0
call fcn.00478a30
jmp case.0x496660.174
mov ecx, 0x549cb8
call fcn.00496040
jmp case.0x496660.174
cmp dword [0x53e3c4], 0
je case.0x496660.174
call dword [sym.imp.USER32.dll_GetFocus]
mov ecx, dword [esp + 0x10]
cmp eax, dword [ecx + 0x28]
jne case.0x496660.174
mov edx, dword [0x53e3c4]
push edx
call dword [sym.imp.USER32.dll_SetFocus]
jmp case.0x496660.174
push ebp
push str.SingleClick
push str.FileList
call fcn.0049c560
test eax, eax
je case.0x496660.174
mov ecx, edi
call fcn.00490820
test eax, eax
je case.0x496660.174
call fcn.004ea4fa
sub eax, dword [0x56a9b8]
cmp eax, 0x3e8
jle case.0x496660.174
push ebp
push 1
mov ecx, edi
call fcn.00496150
xor eax, eax
pop esi
pop ebp
mov ecx, dword [esp + 0x565c]
pop edi
pop ebx
xor ecx, esp
call fcn.004e6b3a
add esp, 0x5658
ret 0x10
mov ecx, edi
call fcn.00490820
test eax, eax
je case.0x496660.174
jmp 0x4967ae
call fcn.00484790
jmp case.0x496660.174
mov eax, dword [ebx + 0x10]
push eax
mov ecx, edi
call fcn.00493d00
jmp case.0x496660.174
mov ecx, 0x54be08
call fcn.0047b4f0
mov dword [esp + 0x18], edx
cmp dword [0x53e3dc], ebp
jne 0x4968fb
cmp byte [edi + 0x1042], 0
jne 0x4968fb
cmp byte [0x53d329], 0
je 0x496838
and eax, 0x40
xor ecx, ecx
or eax, ecx
jne 0x496838
cmp byte [edi + 0x40], cl
je 0x4968fb
cmp byte [edi + 0x40], 0
je 0x496849
xor ecx, ecx
mov word [edi + 0x42], cx
jmp case.0x496660.174
mov edx, dword [ebx + 0x10]
mov ecx, dword [edi + 0x28]
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [esp + 0x1c]
push eax
push ebp
push 0x104b
push ecx
mov dword [esp + 0x2c], 4
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], ebp
call ebx
test eax, eax
je 0x4968fb
mov edx, dword [esp + 0x3c]
push edx
lea eax, [esp + 0x13f0]
push eax
mov ecx, 0x569928
call fcn.0048fc20
push 0x800
lea ecx, [esp + 0x13f0]
push ecx
lea esi, [edi + 0x42]
call fcn.004534c0
push eax
push esi
call fcn.004694b0
mov edx, dword [edi + 0x28]
push ebp
push ebp
push 0x1018
push edx
call ebx
push esi
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov eax, 0x502530
mov cx, word [esi]
cmp cx, word [eax]
jne 0x4968ee
cmp cx, bp
je 0x4968ea
mov cx, word [esi + 2]
cmp cx, word [eax + 2]
jne 0x4968ee
add esi, 4
add eax, 4
cmp cx, bp
jne 0x4968c8
xor eax, eax
jmp 0x4968f3
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebp
jne case.0x496660.174
mov eax, 1
jmp 0x4967ba
xor eax, eax
mov word [0x5699b8], ax
mov eax, dword [ebx + 0x20]
xor ecx, ecx
mov dword [esp + 0x10], ebp
mov word [esp + 0x4664], cx
lea esi, [ecx + 1]
cmp eax, ebp
jne 0x496964
cmp byte [edi + 0x40], cl
je case.0x496660.174
mov ecx, dword [edi + 0x28]
mov edx, dword [ebx + 0x10]
lea eax, [esp + 0x1c]
push eax
push ebp
push 0x104b
push ecx
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], ebp
mov dword [esp + 0x40], 0x5699b8
mov dword [esp + 0x44], 0x800
mov dword [esp + 0x2c], esi
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x4969be
push 0x800
push eax
push 0x5699b8
call fcn.004694b0
mov ebx, dword [ebx + 0x2c]
cmp ebx, dword [0x569994]
jae 0x4969be
push ebx
lea edx, [esp + 0x13f0]
push edx
mov ecx, 0x569928
call fcn.0048fc20
push 0x800
lea eax, [esp + 0x13f0]
push eax
lea ecx, [esp + 0x466c]
push ecx
call fcn.004694b0
lea edx, [esp + 0x4664]
push edx
call fcn.004534c0
xor ecx, ecx
mov word [eax], cx
cmp word [0x5699b8], bp
je case.0x496660.174
cmp byte [edi + 0x40], 0
je 0x496b44
mov byte [edi + 0x40], 0
cmp byte [0x53d329], 0
je 0x496b01
push ebp
push 0x800
lea edx, [esp + 0x366c]
push edx
push str.Rar_MD
call fcn.004b4490
test al, al
je 0x496d9a
push 0x800
lea eax, [esp + 0x2668]
push eax
push 0x5699b8
lea ecx, [esp + 0x3670]
push ecx
call fcn.00452cb0
push ebp
push ebp
lea edx, [esp + 0x266c]
push edx
call fcn.004458a0
test eax, eax
jne 0x496ae1
push ebp
call fcn.004b0420
push 0x800
push 0x55abfa
mov ecx, 0x54be08
call fcn.0047b190
lea eax, [esp + 0x2664]
push eax
mov ecx, 0x55bbfc
call fcn.004698e0
mov eax, 2
push 0x800
push 0x553810
mov ecx, 0x54be08
mov dword [0x555948], eax
mov dword [0x555944], eax
mov byte [0x5559a0], 0
call fcn.0047b170
push 0x800
push 0x5699b8
push 0x5699b8
push 0x553810
call fcn.00452cb0
mov ecx, dword [0x54be0c]
mov dword [0x557ba8], ecx
push ebp
mov ecx, 0x54be08
call fcn.0047d0d0
mov esi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea edx, [esp + 0x2664]
push edx
call esi
lea eax, [esp + 0x3664]
push eax
call esi
jmp 0x496d9a
lea ecx, [esp + 0x2664]
push ecx
push 0x1f7
call fcn.00463400
push eax
call fcn.004c2ab0
add esp, 8
jmp 0x496d90
push 0x800
push 0x5699b8
push 0x5699b8
mov ecx, edi
call fcn.00490060
push ebp
push ebp
push 0x5699b8
call fcn.004458a0
test eax, eax
jne 0x496b30
mov dword [esp + 0x10], esi
jmp 0x496d9a
cmp word [0x5699b8], bp
je 0x496d9a
push 0x5699b8
jmp 0x496ae9
cmp byte [0x53d329], 0
mov ecx, edi
je 0x496d39
lea edx, [esp + 0x13ec]
push edx
mov dword [esp + 0x2480], ebp
mov dword [esp + 0x2484], ebp
call fcn.004914d0
test al, al
je 0x496b88
push 0x800
lea eax, [esp + 0x13f0]
push eax
lea ecx, [edi + 0x42]
push ecx
call fcn.004694b0
push ebp
call fcn.004b0420
push 0x800
push 0x55abfa
mov ecx, 0x54be08
call fcn.0047b190
mov edx, dword [0x54be0c]
push ebp
push str.FlatView
push str.FileList
mov dword [0x557ba8], edx
call fcn.0049c560
test eax, eax
je 0x496bea
xor eax, eax
jmp 0x496bd0
movzx ecx, word [esp + eax + 0x4664]
mov word [esp + eax + 0x3664], cx
add eax, 2
cmp cx, bp
jne 0x496bd0
jmp 0x496c13
push 0x800
lea eax, [esp + 0x3668]
push eax
mov ecx, 0x54be08
call fcn.0047b170
push 0x800
lea ecx, [esp + 0x3668]
push ecx
call fcn.00452c60
lea esi, [edi + 0x42]
push esi
mov ecx, 0x55bbfc
call fcn.004698e0
push 0x800
lea edx, [esp + 0x3668]
push edx
lea eax, [esp + 0x266c]
push eax
call fcn.004694b0
push 0x800
push 0x5699b8
lea ecx, [esp + 0x266c]
push ecx
call fcn.00469530
mov ecx, 0x55bd6c
call fcn.004698b0
lea edx, [esp + 0x2664]
push edx
mov ecx, 0x55bd6c
call fcn.004698e0
push ebp
push ebp
lea eax, [esp + 0x266c]
push eax
mov ecx, 0x569928
call fcn.0048fa80
test al, al
je 0x496cf7
lea ecx, [esp + 0x2664]
push ecx
push esi
call fcn.0046cb00
test eax, eax
jne 0x496cd0
lea ecx, [esp + 0x2664]
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x496cc7
cmp dx, bp
je 0x496cc3
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x496cc7
add eax, 4
add ecx, 4
cmp dx, bp
jne 0x496ca1
xor eax, eax
jmp 0x496ccc
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebp
jne 0x496cf7
lea edx, [esp + 0x2664]
push edx
mov ecx, edi
call fcn.00493f30
push 0x50d
call fcn.00463400
push eax
call fcn.004c2ab0
add esp, 4
jmp 0x496d9a
mov eax, 0x5699b8
call fcn.00490bb0
test al, al
je 0x496d10
push ebp
mov ecx, 0x54be08
call fcn.0047b520
xor eax, eax
jmp 0x496d20
movzx ecx, word [esp + eax + 0x2664]
mov word [eax + 0x5699b8], cx
add eax, 2
cmp cx, bp
jne 0x496d20
jmp 0x496d9a
push 0x800
lea esi, [edi + 0x42]
push esi
push esi
call fcn.00490060
push 0x800
push 0x5699b8
push 0x5699b8
mov ecx, edi
call fcn.00490060
push 0x5699b8
push esi
call fcn.00445020
test al, al
je 0x496d77
mov dword [esp + 0x10], 1
jmp 0x496d9a
push 0x5699b8
push esi
push 0x208
call fcn.00463400
push eax
call fcn.004c2ab0
add esp, 0xc
mov ecx, 0x531158
call fcn.0043f4b0
mov eax, dword [0x53f484]
push 0x5699b8
push ebp
push 0x8002
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [esp + 0x10]
jmp 0x4967ba
push 0x30
push 0x65
call fcn.00463400
push eax
push 0x1f4
call fcn.00463400
mov ecx, dword [0x53f484]
push eax
push ecx
call fcn.004b53a0
jmp case.0x496660.174
mov eax, dword [ebx + 0xc]
sub eax, 1
je 0x496e74
sub eax, 0x10000
jne case.0x496660.174
cmp dword [0x517c20], 0xffffffff
jne 0x496e32
push 0xff0000
push str.AltColor
push str.SoftwareMicrosoftWindowsCurrentVersionExplorer
call fcn.0049c560
push 0xd9213
push str.AltEncryptionColor
push str.SoftwareMicrosoftWindowsCurrentVersionExplorer
mov dword [0x517c20], eax
call fcn.0049c560
mov dword [0x5699b0], eax
mov edx, dword [ebx + 0x2c]
push edx
lea eax, [esp + 0x54]
push eax
mov ecx, 0x569928
call fcn.0048fc20
mov eax, dword [eax + 0x1098]
test eax, 0x800
je 0x496e5b
mov ecx, dword [0x517c20]
mov dword [ebx + 0x30], ecx
test eax, 0x4000
je case.0x496660.174
mov edx, dword [0x5699b0]
mov dword [ebx + 0x30], edx
jmp case.0x496660.174
movzx eax, byte [0x54be00]
neg eax
sbb eax, eax
and eax, 0x20
jmp 0x4967ba
test byte [ebx + 0xc], 3
je case.0x496660.174
mov ebx, dword [ebx + 0x2c]
cmp ebx, dword [0x569994]
jae case.0x496660.174
push ebx
mov ecx, 0x569928
call fcn.0048faf0
mov ebp, eax
mov al, byte [0x53d329]
mov ebx, 0x4401
test al, al
je 0x496ec0
mov ebx, 0x4411
mov esi, dword [ebp]
test al, al
jne 0x496f00
push 0x800
lea eax, [esp + 0x3668]
push eax
mov ecx, edi
call fcn.00490030
mov edx, dword [ebp]
push 0x800
lea ecx, [esp + 0x4668]
push ecx
push edx
lea eax, [esp + 0x3670]
push eax
call fcn.00452cb0
lea esi, [esp + 0x4664]
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x496f05
sub eax, edx
sar eax, 1
cmp eax, 0x101
ja 0x496f20
cmp word [esi], cx
jne 0x496f4d
push esi
or ebx, 0x10
call fcn.004536c0
mov esi, eax
test esi, esi
je 0x496f48
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x496f32
sub eax, edx
sar eax, 1
cmp eax, 0x101
jbe 0x496f4d
mov esi, str.dummy
cmp byte [0x53d329], 0
je 0x496f74
movzx ecx, word [esi]
push ecx
call fcn.00452bc0
test al, al
je 0x496f74
movzx edx, word [esi + 2]
add esi, 2
push edx
call fcn.00452bc0
test al, al
jne 0x496f63
mov ecx, dword [ebp + 0x18]
mov edi, dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
push ebx
push 0x2b4
lea eax, [esp + 0x1140]
push eax
push ecx
push esi
call edi
test eax, eax
setne al
test al, al
jne 0x496fc6
test bl, 0x10
jne 0x4970c1
mov eax, dword [ebp + 0x18]
or ebx, 0x10
push ebx
push 0x2b4
lea edx, [esp + 0x1140]
push edx
push eax
push esi
call edi
test eax, eax
setne al
test al, al
je 0x4970c1
push 0xc8
lea ecx, [esp + 0x1350]
push ecx
lea edx, [esp + 0x24dc]
push edx
call fcn.004694b0
mov eax, dword [ebp + 0x50]
dec eax
cmp eax, 4
ja case.default.0x496fe9
jmp dword [eax*4 + 0x497254]
push 0xc8
push 0x618
jmp 0x49703a
push 0xc8
push 0x619
call fcn.00463400
push eax
lea ecx, [esp + 0x24dc]
push ecx
jmp 0x497048
push 0xc8
push 0x61a
call fcn.00463400
push eax
lea edx, [esp + 0x24dc]
push edx
jmp 0x497048
push 0xc8
push 0x61b
call fcn.00463400
push eax
lea eax, [esp + 0x24dc]
push eax
call fcn.004694b0
cmp word [esp + 0x24d4], 0
jne 0x497072
mov edx, dword [ebp]
push 0xc8
lea ecx, [esp + 0x24d8]
push ecx
mov ecx, dword [esp + 0x18]
push edx
call fcn.00490b20
movzx eax, byte [0x53d329]
mov esi, dword [esp + 0x14]
add eax, 2
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x28], eax
mov eax, dword [esi + 0x10]
lea ecx, [esp + 0x24d8]
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + 0x28]
push eax
push 0x1074
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [esp + 0x113c]
or dword [esi + 0xc], 0x1000
mov dword [esi + 0x28], eax
jmp case.0x496660.174
mov esi, dword [esp + 0x14]
or dword [esi + 0xc], 0x1000
jmp case.0x496660.174
mov edx, dword [esp + 0x566c]
push ebx
push edx
push ecx
push eax
call dword [sym.imp.USER32.dll_DefWindowProcW]
jmp 0x4967bc