Function at 0x405d50
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x535448
mov eax, dword fs:[0]
push eax
mov eax, 0x18f8
call fcn.00512be0
mov eax, dword [0x584c30]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov dword [ebp - 0x18a8], ecx
lea ecx, [ebp - 0x18e8]
call fcn.0041a3e5
push 0x3ff
lea eax, [ebp - 0x1643]
push 0
mov dword [ebp - 4], 0
push eax
mov byte [ebp - 0x1644], 0
call fcn.00511ef0
add esp, 0xc
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x242]
push edx
mov word [ebp - 0x244], cx
call fcn.00511ef0
add esp, 0xc
xor eax, eax
push 0x7fe
push eax
lea ecx, [ebp - 0xa42]
push ecx
mov word [ebp - 0xa44], ax
call fcn.00511ef0
add esp, 0xc
xor edx, edx
push 0x1fe
push edx
lea eax, [ebp - 0xc42]
push eax
mov word [ebp - 0xc44], dx
call fcn.00511ef0
add esp, 0xc
xor ecx, ecx
push 0x1fe
push ecx
lea edx, [ebp - 0x1242]
push edx
mov word [ebp - 0x1244], cx
call fcn.00511ef0
add esp, 0xc
xor eax, eax
push 0x1fe
push eax
lea ecx, [ebp - 0x1042]
push ecx
mov word [ebp - 0x1044], ax
call fcn.00511ef0
add esp, 0xc
xor edx, edx
push 0x1fe
push edx
lea eax, [ebp - 0xe42]
push eax
mov word [ebp - 0xe44], dx
call fcn.00511ef0
add esp, 0xc
call fcn.0040f7ee
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x405e88
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x18ac], eax
push esi
lea ecx, [ebp - 0xa44]
push str._s.
push ecx
mov byte [ebp - 4], 1
call fcn.0050e6b1
add esp, 0xc
push 0
lea edx, [ebp - 0xa44]
push edx
lea ecx, [ebp - 0x18e8]
call fcn.0041a48c
test eax, eax
je 0x4067ea
nop
lea ecx, [ebp - 0x18e8]
call fcn.0041a0e7
mov dword [ebp - 0x18c8], eax
lea eax, [ebp - 0x18c4]
push eax
lea ecx, [ebp - 0x18e8]
call fcn.0041a6cf
mov ecx, dword [eax]
lea edx, [ebp - 0xa44]
jmp 0x405f00
movzx eax, word [ecx]
mov word [edx], ax
add ecx, 2
add edx, 2
test ax, ax
jne 0x405f00
mov eax, dword [ebp - 0x18c4]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405f33
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x18e8]
call fcn.0041a3a7
test eax, eax
jne 0x4067dd
mov edx, dword [ebp - 0x18e8]
mov eax, dword [edx + 0x38]
push 0x10
lea ecx, [ebp - 0x18e8]
call eax
test eax, eax
je 0x406064
mov esi, dword [ebp - 0x18a8]
mov edx, dword [esi + 0x20]
lea ecx, [ebp - 0xa44]
push ecx
push 0x3f4
push edx
call dword [sym.imp.SHLWAPI.dll_PathSetDlgItemPathW]
mov eax, dword [esi + 0xf48]
push 0
push 0
push pe_nt_image_headers32
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 1
jne 0x405fb2
push str.C:Windows
lea ecx, [ebp - 0xa44]
push ecx
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
jne 0x4067dd
cmp dword [0x58dad4], 0
je 0x406051
lea edx, [ebp - 0x18c0]
push edx
lea ecx, [ebp - 0x18e8]
call fcn.0041a768
mov eax, dword [eax]
push str.everything.ed7ba470_8e54_465e_825c_99712043e01c
push eax
call fcn.0050e96c
add esp, 8
test eax, eax
mov eax, dword [ebp - 0x18c0]
sete bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406008
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x406051
mov ecx, dword [esi + 0xc8]
push 0
push 0
push 0x1004
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0
push 0
lea edx, [ebp - 0xa44]
push edx
push eax
push 1
lea ecx, [esi + 0xa8]
call fcn.004131a9
lea eax, [ebp - 0xa44]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x4067dd
lea ecx, [ebp - 0xa44]
push ecx
mov ecx, esi
call fcn.00405d50
jmp 0x4067dd
call fcn.0040f7ee
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x405e7e
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x18a0], eax
lea ecx, [ebp - 0x18cc]
push ecx
lea ecx, [ebp - 0x18e8]
mov byte [ebp - 4], 2
call fcn.0041a6cf
mov byte [ebp - 4], 3
mov edx, dword [eax]
push edx
lea eax, [ebp - 0x18a0]
push 0x5632b4
push eax
call fcn.00401880
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x18cc]
add eax, 0xfffffff0
add esp, 0xc
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4060e1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [ebp - 0x18a8]
mov ecx, dword [edi + 0xf48]
push 0
push 0
push pe_nt_image_headers32
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 1
jne 0x40611c
push str.C:Windows
lea edx, [ebp - 0xa44]
push edx
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
jne 0x4067b7
cmp dword [0x58dad4], 0
jne 0x4067b7
lea ecx, [ebp - 0x18e8]
call fcn.0041a124
mov esi, eax
mov ebx, edx
mov eax, 0x58c9b0
mov dword [ebp - 0x18bc], esi
mov dword [ebp - 0x18b8], ebx
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x406150
sub eax, edx
sar eax, 1
je 0x40621f
push 0x58c9b0
call fcn.0050eede
cdq
add esp, 4
cmp esi, eax
jne 0x4067b7
cmp ebx, edx
jne 0x4067b7
or esi, ebx
jne 0x40621f
push 0x58c9b0
call fcn.0050eede
add esp, 4
test eax, eax
jne 0x40621f
mov ecx, dword [edi + 0xc8]
push eax
push eax
push 0x1004
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0
push 0
lea edx, [ebp - 0xa44]
push edx
mov esi, eax
push esi
push 1
lea ecx, [edi + 0xa8]
call fcn.004131a9
push 0
push 0
lea eax, [ebp - 0x18ac]
push str._I64d
push eax
call fcn.00401880
mov ecx, dword [ebp - 0x18ac]
add esp, 0x10
push ecx
push 1
push esi
lea ecx, [edi + 0xa8]
call fcn.00412d98
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x18a0]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x4067d1
mov eax, 0x58cbb0
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x406227
sub eax, edx
sar eax, 1
je 0x40627e
lea ecx, [ebp - 0xa44]
push 0x2e
push ecx
call fcn.0050f66e
add esp, 8
test eax, eax
je 0x406200
push eax
lea ecx, [ebp - 0xc44]
push 0x100
push ecx
call fcn.0051018e
add esp, 0xc
lea edx, [ebp - 0xc44]
push 0x58cbb0
push edx
call fcn.0050e96c
add esp, 8
test eax, eax
jne 0x4067b7
mov eax, 0x58d1b0
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x406286
sub eax, edx
sar eax, 1
je 0x4062b1
push 0x58d1b0
lea ecx, [ebp - 0xa44]
push ecx
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x406200
mov eax, 0x58cdb0
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4062c0
sub eax, edx
sar eax, 1
je 0x40632d
lea esi, [ebp - 0xa44]
call fcn.00406890
cmp eax, 1
jne 0x4067b7
mov ecx, esi
call fcn.00406b50
push eax
lea ecx, [ebp - 0x1044]
push 0x100
push ecx
call fcn.0051018e
add esp, 0xc
lea edx, [ebp - 0x1044]
push 0x58cdb0
push edx
call fcn.0050e96c
add esp, 8
test eax, eax
je 0x40632d
lea ecx, [ebp - 0x18a0]
mov byte [ebp - 4], 1
call fcn.00401680
jmp 0x4067dd
mov eax, 0x58cfb0
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x406335
sub eax, edx
sar eax, 1
je 0x4063a2
lea esi, [ebp - 0xa44]
call fcn.00406890
cmp eax, 1
jne 0x406648
mov ecx, esi
call fcn.00406cd0
push eax
lea ecx, [ebp - 0xe44]
push 0x100
push ecx
call fcn.0051018e
add esp, 0xc
lea edx, [ebp - 0xe44]
push 0x58cfb0
push edx
call fcn.0050e96c
add esp, 8
test eax, eax
je 0x4063a2
lea ecx, [ebp - 0x18a0]
mov byte [ebp - 4], 1
call fcn.00401680
jmp 0x4067dd
cmp dword [0x58dac8], 0
je 0x4063ce
lea esi, [ebp - 0xa44]
call fcn.00406a00
test eax, eax
jne 0x4063ce
lea ecx, [ebp - 0x18a0]
mov byte [ebp - 4], 1
call fcn.00401680
jmp 0x4067dd
cmp dword [0x58dacc], 0
je 0x4063fa
lea esi, [ebp - 0xa44]
call fcn.00406890
cmp eax, 1
jne 0x4063fa
lea ecx, [ebp - 0x18a0]
mov byte [ebp - 4], al
call fcn.00401680
jmp 0x4067dd
call fcn.0040f7ee
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x405e7e
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x18a4], eax
lea ecx, [ebp - 0x18a4]
call fcn.0040a590
mov ebx, dword [ebp - 0x18a8]
xor esi, esi
push esi
push esi
mov byte [ebp - 4], 5
mov ecx, dword [ebx + 0xc8]
push 0x1004
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
push esi
push esi
push esi
push esi
lea edx, [ebp - 0xa44]
push edx
mov edi, eax
push edi
add ebx, 0xa8
push 1
mov ecx, ebx
call fcn.004131a9
mov eax, dword [ebp - 0x18b8]
mov ecx, dword [ebp - 0x18bc]
push eax
push ecx
lea edx, [ebp - 0x18ac]
push str._I64d
push edx
call fcn.00401880
mov eax, dword [ebp - 0x18ac]
add esp, 0x10
push eax
push 1
push edi
mov ecx, ebx
call fcn.00412d98
lea ecx, [ebp - 0x1900]
mov dword [ebp - 0x189c], esi
mov dword [ebp - 0x1898], esi
mov dword [ebp - 0x1894], esi
mov dword [ebp - 0x1890], esi
mov dword [ebp - 0x188c], esi
mov dword [ebp - 0x1888], esi
call fcn.0041b06d
push esi
lea ecx, [ebp - 0x189c]
push ecx
lea edx, [ebp - 0xa44]
push edx
mov byte [ebp - 4], 6
call fcn.0041b7cc
test eax, eax
je 0x406537
lea eax, [ebp - 0x189c]
push eax
lea ecx, [ebp - 0x1668]
push ecx
call fcn.0050f3bf
add esp, 8
neg eax
sbb eax, eax
not eax
and eax, dword [ebp - 0x165c]
lea ecx, [ebp - 0x189c]
mov esi, eax
call fcn.00401ca0
push eax
lea ecx, [ebp - 0x189c]
call fcn.00401cf0
push eax
push esi
lea edx, [ebp - 0x18a4]
push str._d__d__d
push edx
call fcn.00401880
add esp, 0x14
mov eax, dword [ebp - 0x18a4]
push eax
push 2
push edi
mov ecx, ebx
call fcn.00412d98
lea esi, [ebp - 0xa44]
call fcn.00406890
cmp eax, 1
jne 0x406562
mov ecx, esi
call fcn.00406cd0
push eax
jmp 0x406567
push 0x5629d4
push 3
push edi
mov ecx, ebx
call fcn.00412d98
push str.Virus_Not_Found
push 4
push edi
mov ecx, ebx
call fcn.00412d98
lea eax, [ebp - 0xa44]
call fcn.00406850
cmp eax, 1
jne 0x40672b
mov esi, dword [ebp - 0x18a8]
lea ecx, [esi + 0xf9c]
call fcn.00401e30
cmp eax, 1
jne 0x40665c
push 0x400
lea ecx, [ebp - 0xa44]
push ecx
lea edx, [ebp - 0x1644]
push edx
call fcn.0050ff9c
add esp, 0xc
lea eax, [ebp - 0x1644]
push 0x5c
push eax
call fcn.0050fc60
add esp, 8
test eax, eax
je 0x406740
inc eax
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4065e6
sub eax, edx
test eax, eax
jle 0x40661f
push 0x104
lea esi, [ebp - 0x1644]
call fcn.00401ee0
push eax
lea ecx, [ebp - 0x244]
push ecx
call fcn.0050ee9e
add esp, 0xc
lea edx, [ebp - 0x244]
push edx
jmp 0x406730
push 0x5629d4
push 5
push edi
mov ecx, ebx
call fcn.00412d98
lea ecx, [ebp - 0x1900]
mov byte [ebp - 4], 5
call fcn.0041b1db
lea ecx, [ebp - 0x18a4]
call fcn.00401680
lea ecx, [ebp - 0x18a0]
mov byte [ebp - 4], 1
call fcn.00401680
jmp 0x4067dd
cmp dword [0x58c99c], 0
je 0x40671a
xor eax, eax
lea ecx, [ebp - 0x18b0]
mov byte [ebp - 0x38], 0
mov dword [ebp - 0x37], eax
mov dword [ebp - 0x33], eax
mov dword [ebp - 0x2f], eax
mov dword [ebp - 0x2b], eax
mov dword [ebp - 0x27], eax
mov dword [ebp - 0x23], eax
mov dword [ebp - 0x1f], eax
mov dword [ebp - 0x1b], eax
call fcn.00401620
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0xa44]
push ecx
mov byte [ebp - 4], 7
call dword [0x58c99c]
push 0x21
lea edx, [ebp - 0x38]
push edx
lea eax, [ebp - 0x244]
push eax
call fcn.0050ee9e
add esp, 0x14
lea ecx, [ebp - 0x244]
push ecx
push 5
push edi
mov ecx, ebx
call fcn.00412d98
mov eax, dword [ebp - 0x18a0]
lea edx, [ebp - 0x244]
push edx
push eax
lea ecx, [ebp - 0x18b0]
push str._s__s
push ecx
call fcn.00401880
add esp, 0xc
lea edx, [ebp - 0x18b0]
mov dword [ebp - 0x18ec], esp
mov ecx, esp
push edx
call fcn.0040a470
push esi
call fcn.00409820
lea ecx, [ebp - 0x18b0]
mov byte [ebp - 4], 6
call fcn.00401680
jmp 0x406740
push 0x5629d4
push 5
push edi
mov ecx, ebx
call fcn.00412d98
jmp 0x406740
push 0x5629d4
push 5
push edi
mov ecx, ebx
call fcn.00412d98
mov esi, dword [ebp - 0x18a8]
mov eax, dword [esi + 0xc8]
push 0
push 0
push 0x1004
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push eax
push str.Files_Found_:__d
lea ecx, [ebp - 0x1244]
push 0x100
push ecx
call fcn.0050e750
add esp, 0x10
lea edx, [ebp - 0x1244]
push edx
lea ecx, [esi + 0x618]
call fcn.0042291f
lea ecx, [ebp - 0x1900]
mov byte [ebp - 4], 5
call fcn.0041b1db
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x18a4]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4067b7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x18a0]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4067dd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [ebp - 0x18c8], 0
jne 0x405ed0
lea ecx, [ebp - 0x18e8]
call fcn.0041a001
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x18ac]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40681b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x18e8]
mov dword [ebp - 4], 0xffffffff
call fcn.0041a417
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0050e062
mov esp, ebp
pop ebp
ret 4