Function at 0x495fa0
Capabilities:
Delete directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
mov esi, ecx
mov eax, dword [esi + 0xfc]
test eax, eax
jne 0x495fb8
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [eax + 0x1d8]
sub ecx, dword [eax + 0x1d4]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
push ebx
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
mov eax, edx
shr eax, 0x1f
add eax, edx
push edi
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 0x6c]
push eax
mov eax, dword [esi + 0x40]
push 4
lea edi, [esi + 0x40]
push 0x110a
push eax
mov dword [ebp - 8], 0
call ebx
xor ecx, ecx
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], ecx
cmp eax, ecx
je 0x4960ec
mov dword [ebp - 0x14], ecx
jmp 0x496013
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [ebp - 0xc]
jge 0x4960ec
mov edx, dword [edi]
push 0xf000
push eax
push 0x1127
push edx
call ebx
mov ecx, eax
mov eax, dword [esi + 0xfc]
mov edx, dword [eax + 0x1d8]
sub edx, dword [eax + 0x1d4]
add eax, 0x1c8
mov dword [ebp - 0x1c], eax
mov eax, 0x2aaaaaab
imul edx
sar edx, 2
mov eax, edx
shr eax, 0x1f
and ecx, 0xf000
add eax, edx
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0x10], eax
jb 0x496072
call fcn.004eaba2
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0xc]
mov edx, dword [ebp - 0x14]
shr ecx, 0xc
dec ecx
mov dword [edx + eax], ecx
mov ecx, dword [esi + 0xfc]
mov edx, dword [ecx + 0x1d8]
sub edx, dword [ecx + 0x1d4]
add ecx, 0x1c8
mov eax, 0x2aaaaaab
imul edx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x1c], ecx
cmp dword [ebp - 0x10], eax
jb 0x4960bb
call fcn.004eaba2
mov ecx, dword [ebp - 0x1c]
mov ecx, dword [ecx + 0xc]
mov edx, dword [ebp - 0x14]
cmp dword [edx + ecx], 0
je 0x4960ca
inc dword [ebp - 8]
mov eax, dword [ebp - 4]
mov ecx, dword [edi]
inc dword [ebp - 0x10]
add dword [ebp - 0x14], 0x18
push eax
push 1
push 0x110a
push ecx
call ebx
mov dword [ebp - 4], eax
test eax, eax
jne 0x496010
mov eax, dword [esi + 0xfc]
mov ecx, dword [eax + 0x1c0]
sub ecx, dword [eax + 0x1bc]
add eax, 0x1b0
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [edi]
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 0x70]
push eax
push 4
push 0x110a
push edx
call ebx
xor ecx, ecx
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], ecx
cmp eax, ecx
je 0x49621c
mov dword [ebp - 0x14], ecx
jmp 0x496143
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [ebp - 0xc]
jge 0x49621c
mov edx, dword [edi]
push 0xf000
push eax
push 0x1127
push edx
call ebx
mov ecx, eax
mov eax, dword [esi + 0xfc]
mov edx, dword [eax + 0x1c0]
sub edx, dword [eax + 0x1bc]
add eax, 0x1b0
mov dword [ebp - 0x18], eax
mov eax, 0x2aaaaaab
imul edx
sar edx, 2
mov eax, edx
shr eax, 0x1f
and ecx, 0xf000
add eax, edx
mov dword [ebp - 0x1c], ecx
cmp dword [ebp - 0x10], eax
jb 0x4961a2
call fcn.004eaba2
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0xc]
mov edx, dword [ebp - 0x14]
shr ecx, 0xc
dec ecx
mov dword [edx + eax], ecx
mov ecx, dword [esi + 0xfc]
mov edx, dword [ecx + 0x1c0]
sub edx, dword [ecx + 0x1bc]
add ecx, 0x1b0
mov eax, 0x2aaaaaab
imul edx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x1c], ecx
cmp dword [ebp - 0x10], eax
jb 0x4961eb
call fcn.004eaba2
mov ecx, dword [ebp - 0x1c]
mov ecx, dword [ecx + 0xc]
mov edx, dword [ebp - 0x14]
cmp dword [edx + ecx], 0
je 0x4961fa
inc dword [ebp - 8]
mov eax, dword [ebp - 4]
mov ecx, dword [edi]
inc dword [ebp - 0x10]
add dword [ebp - 0x14], 0x18
push eax
push 1
push 0x110a
push ecx
call ebx
mov dword [ebp - 4], eax
test eax, eax
jne 0x496140
mov eax, dword [esi + 0xfc]
mov ecx, dword [eax + 0x1f0]
sub ecx, dword [eax + 0x1ec]
add eax, 0x1e0
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [edi]
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 0x78]
push eax
push 4
push 0x110a
push edx
call ebx
xor ecx, ecx
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], ecx
cmp eax, ecx
je 0x49634c
mov dword [ebp - 0x14], ecx
jmp 0x496273
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [ebp - 0xc]
jge 0x49634c
mov edx, dword [edi]
push 0xf000
push eax
push 0x1127
push edx
call ebx
mov ecx, eax
mov eax, dword [esi + 0xfc]
mov edx, dword [eax + 0x1f0]
sub edx, dword [eax + 0x1ec]
add eax, 0x1e0
mov dword [ebp - 0x18], eax
mov eax, 0x2aaaaaab
imul edx
sar edx, 2
mov eax, edx
shr eax, 0x1f
and ecx, 0xf000
add eax, edx
mov dword [ebp - 0x1c], ecx
cmp dword [ebp - 0x10], eax
jb 0x4962d2
call fcn.004eaba2
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0xc]
mov edx, dword [ebp - 0x14]
shr ecx, 0xc
dec ecx
mov dword [edx + eax], ecx
mov ecx, dword [esi + 0xfc]
mov edx, dword [ecx + 0x1f0]
sub edx, dword [ecx + 0x1ec]
add ecx, 0x1e0
mov eax, 0x2aaaaaab
imul edx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x1c], ecx
cmp dword [ebp - 0x10], eax
jb 0x49631b
call fcn.004eaba2
mov ecx, dword [ebp - 0x1c]
mov ecx, dword [ecx + 0xc]
mov edx, dword [ebp - 0x14]
cmp dword [edx + ecx], 0
je 0x49632a
inc dword [ebp - 8]
mov eax, dword [ebp - 4]
mov ecx, dword [edi]
inc dword [ebp - 0x10]
add dword [ebp - 0x14], 0x18
push eax
push 1
push 0x110a
push ecx
call ebx
mov dword [ebp - 4], eax
test eax, eax
jne 0x496270
mov eax, dword [esi + 0xfc]
mov ecx, dword [eax + 0x190]
sub ecx, dword [eax + 0x18c]
add eax, 0x180
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [edi]
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 0x68]
push eax
push 4
push 0x110a
push edx
call ebx
xor ecx, ecx
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], ecx
cmp eax, ecx
je 0x49647a
mov dword [ebp - 0x14], ecx
jmp 0x4963a3
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [ebp - 0xc]
jge 0x49647a
mov edx, dword [edi]
push 0xf000
push eax
push 0x1127
push edx
call ebx
mov ecx, eax
mov eax, dword [esi + 0xfc]
mov edx, dword [eax + 0x190]
sub edx, dword [eax + 0x18c]
add eax, 0x180
mov dword [ebp - 0x18], eax
mov eax, 0x2aaaaaab
imul edx
sar edx, 1
mov eax, edx
shr eax, 0x1f
and ecx, 0xf000
add eax, edx
mov dword [ebp - 0x1c], ecx
cmp dword [ebp - 0x10], eax
jb 0x496401
call fcn.004eaba2
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0xc]
mov edx, dword [ebp - 0x14]
shr ecx, 0xc
dec ecx
mov dword [edx + eax], ecx
mov ecx, dword [esi + 0xfc]
mov edx, dword [ecx + 0x190]
sub edx, dword [ecx + 0x18c]
add ecx, 0x180
mov eax, 0x2aaaaaab
imul edx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x1c], ecx
cmp dword [ebp - 0x10], eax
jb 0x496449
call fcn.004eaba2
mov ecx, dword [ebp - 0x1c]
mov ecx, dword [ecx + 0xc]
mov edx, dword [ebp - 0x14]
cmp dword [edx + ecx], 0
je 0x496458
inc dword [ebp - 8]
mov eax, dword [ebp - 4]
mov ecx, dword [edi]
inc dword [ebp - 0x10]
add dword [ebp - 0x14], 0xc
push eax
push 1
push 0x110a
push ecx
call ebx
mov dword [ebp - 4], eax
test eax, eax
jne 0x4963a0
mov eax, dword [esi + 0xfc]
mov ecx, dword [eax + 0x1a8]
sub ecx, dword [eax + 0x1a4]
add eax, 0x198
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [edi]
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 0x64]
push eax
push 4
push 0x110a
push edx
call ebx
xor ecx, ecx
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], ecx
cmp eax, ecx
je 0x4965aa
mov dword [ebp - 0x14], ecx
jmp 0x4964d3
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [ebp - 0xc]
jge 0x4965aa
mov edx, dword [edi]
push 0xf000
push eax
push 0x1127
push edx
call ebx
mov ecx, eax
mov eax, dword [esi + 0xfc]
mov edx, dword [eax + 0x1a8]
sub edx, dword [eax + 0x1a4]
add eax, 0x198
mov dword [ebp - 0x18], eax
mov eax, 0x2aaaaaab
imul edx
sar edx, 1
mov eax, edx
shr eax, 0x1f
and ecx, 0xf000
add eax, edx
mov dword [ebp - 0x1c], ecx
cmp dword [ebp - 0x10], eax
jb 0x496531
call fcn.004eaba2
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0xc]
mov edx, dword [ebp - 0x14]
shr ecx, 0xc
dec ecx
mov dword [edx + eax], ecx
mov ecx, dword [esi + 0xfc]
mov edx, dword [ecx + 0x1a8]
sub edx, dword [ecx + 0x1a4]
add ecx, 0x198
mov eax, 0x2aaaaaab
imul edx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x1c], ecx
cmp dword [ebp - 0x10], eax
jb 0x496579
call fcn.004eaba2
mov ecx, dword [ebp - 0x1c]
mov ecx, dword [ecx + 0xc]
mov edx, dword [ebp - 0x14]
cmp dword [edx + ecx], 0
je 0x496588
inc dword [ebp - 8]
mov eax, dword [ebp - 4]
mov ecx, dword [edi]
inc dword [ebp - 0x10]
add dword [ebp - 0x14], 0xc
push eax
push 1
push 0x110a
push ecx
call ebx
mov dword [ebp - 4], eax
test eax, eax
jne 0x4964d0
mov ecx, dword [esi + 0xfc]
call fcn.004910a0
mov edx, dword [0x5427f0]
mov eax, dword [edx + 0xc]
mov ecx, 0x5427f0
call eax
mov ecx, dword [edi]
add eax, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 0x74]
push eax
push 4
push 0x110a
push ecx
call ebx
mov dword [ebp - 4], eax
test eax, eax
jne 0x496624
mov edi, dword [ebp - 8]
test edi, edi
jle 0x4965f9
mov ecx, esi
call fcn.00492cb0
push 1
mov ecx, esi
call fcn.004950f0
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x496618
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
mov edx, dword [edi]
push 0xf000
push eax
push 0x1127
push edx
call ebx
shr eax, 0xc
and eax, 0xf
sub eax, 1
je 0x4966bc
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0xc]
push eax
push ecx
mov ecx, edi
call fcn.00493740
test eax, eax
je 0x4966bc
mov edx, dword [ebp - 0xc]
inc dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0x10
mov eax, dword [ebp - 0xc]
jne 0x496670
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x4966bc
cmp dword [eax - 4], 1
jle 0x496685
mov ecx, dword [eax - 0xc]
push ecx
lea ecx, [ebp - 0xc]
call fcn.00460a30
mov eax, dword [ebp - 0xc]
mov edx, dword [esi + 4]
mov ecx, dword [esi + 0xfc]
push edx
push 0
push eax
call fcn.0048d460
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.004eb0bf
add esp, 8
test eax, eax
jl 0x4966dc
mov ecx, dword [ebp - 0xc]
cmp eax, dword [ecx - 8]
jg 0x4966dc
xor edx, edx
mov dword [ecx - 0xc], eax
mov word [ecx + eax*2], dx
mov eax, dword [ebp - 4]
mov ecx, dword [edi]
push eax
push 1
push 0x110a
push ecx
call ebx
mov dword [ebp - 4], eax
test eax, eax
jne 0x496621
jmp 0x4965e2
push 0x80070057
call fcn.0045f890
int3