Function at 0x413a90
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50beef
mov eax, dword fs:[0]
push eax
sub esp, 0xa4
mov eax, dword [0x574be0]
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 dword [ebp - 0x10], esp
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 4], 0
mov ecx, dword [esi + 0xa0]
mov dword [ebp - 0x84], ebx
test ecx, ecx
je 0x413aee
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [esi + 0xa0], 0
mov dword [ebx], 0
mov ecx, dword [esi + 0x98]
test ecx, ecx
je 0x413b0e
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [esi + 0x98], 0
mov edi, dword [ebp + 0xc]
xor ecx, ecx
mov eax, 4
mov edx, 2
mul edx
seto cl
mov byte [esi + 0x5d], 0
mov byte [esi + 0x58], 0
mov dword [esi + 0x88], 0
mov dword [esi + 0x8c], 0
mov byte [esi + 0x90], 0
mov dword [esi + 0x84], edi
neg ecx
or ecx, eax
push ecx
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
call fcn.004ea353
xor ecx, ecx
add esp, 4
mov dword [ebp - 0x5c], eax
mov word [eax], cx
mov dword [ebp - 0x54], 4
mov byte [ebp - 4], 1
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx]
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x5c]
push eax
push edi
call fcn.004189f0
mov ebx, eax
test ebx, ebx
jne 0x413be7
mov ecx, dword [ebp - 0x60]
lea eax, [esi + 0x80]
push eax
push 6
mov edx, edi
call fcn.00418960
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x413be7
lea eax, [ebp - 0x5c]
push eax
lea ecx, [esi + 0x44]
call fcn.00402690
xor eax, eax
mov dword [ebp - 0x74], eax
mov ecx, dword [ebp - 0x60]
lea edx, [ebp - 0x74]
push edx
push 0x1d
mov byte [ebp - 4], 2
mov eax, dword [ecx]
push edi
push ecx
call dword [eax + 0x18]
mov ebx, eax
test ebx, ebx
je 0x413bf9
lea ecx, [ebp - 0x74]
call fcn.0041c0e0
push dword [ebp - 0x5c]
call fcn.004ea2dd
add esp, 4
mov eax, ebx
jmp 0x41440d
mov ax, word [ebp - 0x74]
test ax, ax
je 0x413c35
cmp ax, 0x15
je 0x413c25
lea ecx, [ebp - 0x74]
call fcn.0041c0e0
push dword [ebp - 0x5c]
call fcn.004ea2dd
add esp, 4
mov eax, 0x80004005
jmp 0x41440d
mov eax, dword [ebp - 0x6c]
mov dword [esi + 0x50], eax
mov eax, dword [ebp - 0x68]
mov dword [esi + 0x54], eax
mov byte [esi + 0x58], 1
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 1
call fcn.0041c0e0
mov ecx, dword [ebp - 0x60]
lea eax, [esi + 0x5d]
push eax
push 0xf
mov edx, edi
call fcn.00418960
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x413be7
mov ecx, esi
call fcn.00413980
mov ebx, eax
test ebx, ebx
jne 0x413be7
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x413c91
cmp byte [esi + 0x80], al
lea eax, [ebp - 0x4d]
push eax
sete byte [ebp - 0x64]
push dword [ebp - 0x64]
lea eax, [ebp - 0x5c]
push eax
call fcn.0041b320
test al, al
je 0x413ce0
cmp byte [ebp - 0x4d], bl
je 0x413ce0
cmp dword [ebp + 0x14], 0
jne 0x414351
cmp byte [esi + 0xb9], 0
jne 0x414351
cmp byte [esi + 0xb8], 0
je 0x413cf2
push 8
call fcn.004ea353
mov esi, eax
add esp, 4
test esi, esi
je 0x413cd6
mov dword [esi + 4], 0
mov dword [esi], vtable.CStdOutFileStream.0
mov eax, dword [esi]
push esi
call dword [eax + 4]
jmp 0x413cd8
xor esi, esi
mov eax, dword [ebp - 0x84]
mov dword [eax], esi
push dword [ebp - 0x5c]
call fcn.004ea2dd
add esp, 4
xor eax, eax
jmp 0x41440d
xor eax, eax
mov dword [ebp - 0x74], eax
mov ecx, dword [ebp - 0x60]
lea edx, [ebp - 0x74]
push edx
push 9
mov byte [ebp - 4], 3
mov eax, dword [ecx]
push edi
push ecx
call dword [eax + 0x18]
mov ebx, eax
test ebx, ebx
jne 0x413bdf
mov ax, word [ebp - 0x74]
cmp ax, 0x13
jne 0x413d2b
mov eax, dword [ebp - 0x6c]
mov dword [esi + 0x78], eax
mov byte [esi + 0x7f], 1
jmp 0x413d37
test ax, ax
jne 0x413c08
mov byte [esi + 0x7f], al
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 1
call fcn.0041c0e0
lea eax, [esi + 0x7c]
push eax
lea eax, [esi + 0x60]
push eax
push 0xa
push edi
mov ecx, esi
call fcn.004138d0
mov ebx, eax
test ebx, ebx
jne 0x413be7
lea eax, [esi + 0x7d]
push eax
lea eax, [esi + 0x68]
push eax
push 0xb
push edi
mov ecx, esi
call fcn.004138d0
mov ebx, eax
test ebx, ebx
jne 0x413be7
lea eax, [esi + 0x7e]
push eax
lea eax, [esi + 0x70]
push eax
push 0xc
push edi
mov ecx, esi
call fcn.004138d0
mov ebx, eax
test ebx, ebx
jne 0x413be7
mov eax, dword [esi + 0x10]
mov ecx, dword [eax]
xor eax, eax
mov dword [ebp - 0x74], eax
lea edx, [ebp - 0x74]
push edx
xor al, al
push 0x15
mov byte [ebp - 4], 4
mov byte [ebp - 0x4d], al
mov eax, dword [ecx]
push edi
push ecx
call dword [eax + 0x18]
mov edi, eax
test edi, edi
je 0x413dd7
lea ecx, [ebp - 0x74]
call fcn.0041c0e0
push dword [ebp - 0x5c]
call fcn.004ea2dd
add esp, 4
mov eax, edi
jmp 0x41440d
mov ax, word [ebp - 0x74]
cmp ax, 0xb
jne 0x413e2f
cmp word [ebp - 0x6c], 0
setne al
mov byte [ebp - 0x4d], al
lea ecx, [ebp - 0x74]
call fcn.0041c0e0
lea ecx, [ebp - 0x98]
call fcn.00402320
lea edx, [ebp - 0x98]
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 5
call fcn.0041ad80
mov ecx, dword [ebp - 0x90]
test ecx, ecx
jne 0x413e53
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 1
call fcn.00402350
jmp 0x413c10
test ax, ax
je 0x413dec
lea ecx, [ebp - 0x74]
call fcn.0041c0e0
push dword [ebp - 0x5c]
mov edi, 0x80004005
call fcn.004ea2dd
add esp, 4
mov eax, edi
jmp 0x41440d
mov eax, dword [esi + 0x30]
xor ebx, ebx
dec eax
je 0x413f16
dec eax
jne 0x413e65
lea ebx, [ecx - 1]
push ebx
push 0
lea ecx, [ebp - 0x98]
call fcn.00402490
lea ecx, [ebp - 0x98]
call fcn.00417ae0
lea edx, [ebp - 0x98]
lea ecx, [ebp - 0xb0]
call fcn.00417d10
mov byte [ebp - 4], 6
mov bl, byte [ebp - 0x4d]
test bl, bl
jne 0x413fe9
cmp byte [esi + 0x80], bl
jne 0x413ec7
mov eax, dword [ebp - 0x90]
test eax, eax
je 0x413fe9
dec eax
push 1
push eax
mov eax, dword [ebp - 0x98]
lea ecx, [ebp - 0x98]
call dword [eax + 4]
cmp dword [ebp - 0x90], 0
je 0x413fe9
lea ecx, [ebp - 0xa4]
call fcn.00402540
lea eax, [ebp - 0xa4]
push eax
lea eax, [ebp - 0x98]
push eax
mov ecx, esi
mov byte [ebp - 4], 7
call fcn.00413840
cmp byte [esi + 0x80], 0
je 0x413fd7
cmp byte [esi + 0x5c], 0
je 0x413f54
cmp byte [esi + 0x7e], 0
je 0x413f54
lea edi, [esi + 0x70]
jmp 0x413f64
mov ebx, dword [esi + 0xac]
cmp ecx, ebx
jle 0x413e1b
xor edi, edi
cmp edi, ebx
jge 0x413e65
mov eax, dword [ebp - 0x8c]
mov edx, dword [eax + edi*4]
mov eax, dword [esi + 0xb0]
mov edx, dword [edx]
mov ecx, dword [eax + edi*4]
mov ecx, dword [ecx]
call fcn.0041aa50
test eax, eax
jne 0x413e1b
inc edi
jmp 0x413f26
mov edi, dword [esi + 0x10]
cmp byte [edi + 0x2c], 0
je 0x413f62
add edi, 0x24
jmp 0x413f64
xor edi, edi
cmp byte [esi + 0x5b], 0
je 0x413f78
cmp byte [esi + 0x7d], 0
je 0x413f78
lea eax, [esi + 0x68]
mov dword [ebp - 0x60], eax
jmp 0x413f7f
mov dword [ebp - 0x60], 0
cmp byte [esi + 0x5a], 0
je 0x413f93
cmp byte [esi + 0x7c], 0
je 0x413f93
lea eax, [esi + 0x60]
mov dword [ebp - 0x64], eax
jmp 0x413f9a
mov dword [ebp - 0x64], 0
push 0
push 0x2000000
push 3
push 0
push 3
push 0x40000000
push dword [ebp - 0xa4]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x413fd4
push edi
push dword [ebp - 0x60]
push dword [ebp - 0x64]
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, byte [ebp - 0x4d]
mov byte [ebp - 4], 6
push dword [ebp - 0xa4]
call fcn.004ea2dd
add esp, 4
lea eax, [ebp - 0xb0]
push eax
lea edx, [esi + 0x24]
lea ecx, [ebp - 0x80]
call fcn.00414910
add esp, 4
mov byte [ebp - 4], 8
cmp byte [esi + 0x80], 0
je 0x41405b
lea eax, [ebp - 0x80]
push eax
lea ecx, [esi + 0x38]
call fcn.00402690
test bl, bl
je 0x414024
push dword [esi + 0x38]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push dword [ebp - 0x80]
call fcn.004ea2dd
push dword [ebp - 0xb0]
call fcn.004ea2dd
add esp, 8
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 1
call fcn.00402350
push dword [ebp - 0x5c]
call fcn.004ea2dd
add esp, 4
xor eax, eax
jmp 0x41440d
cmp byte [esi + 0x58], 0
jne 0x414185
lea ecx, [ebp - 0x4c]
call fcn.00401490
mov byte [ebp - 4], 9
push dword [ebp - 0x80]
lea ecx, [ebp - 0x4c]
call fcn.0041beb0
test al, al
je 0x414176
mov eax, dword [esi + 0x34]
sub eax, 2
je 0x414137
mov ecx, dword [ebp - 0x80]
call fcn.0041bce0
test al, al
jne 0x414176
push 0x54c510
lea ecx, [ebp - 0x70]
call fcn.00402570
lea ecx, [ebp - 0x80]
push ecx
mov edx, eax
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 0xa
call fcn.00414910
add esp, 4
mov byte [ebp - 4], 0xc
push dword [ebp - 0x70]
call fcn.004ea2dd
mov eax, dword [esi + 0x18]
add esp, 4
mov ecx, dword [eax]
push dword [ebp - 0xa4]
push eax
call dword [ecx + 0x1c]
push dword [ebp - 0xa4]
mov esi, eax
call fcn.004ea2dd
push dword [ebp - 0x24]
call fcn.004ea2dd
push dword [ebp - 0x80]
call fcn.004ea2dd
push dword [ebp - 0xb0]
call fcn.004ea2dd
add esp, 0x10
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 1
call fcn.00402350
push dword [ebp - 0x5c]
call fcn.004ea2dd
add esp, 4
test esi, esi
je 0x413ceb
mov eax, esi
jmp 0x41440d
push dword [ebp - 0x24]
call fcn.004ea2dd
push dword [ebp - 0x80]
call fcn.004ea2dd
push dword [ebp - 0xb0]
call fcn.004ea2dd
add esp, 0xc
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 1
call fcn.00402350
push dword [ebp - 0x5c]
call fcn.004ea2dd
add esp, 4
xor eax, eax
jmp 0x41440d
mov byte [ebp - 4], 8
push dword [ebp - 0x24]
call fcn.004ea2dd
add esp, 4
test bl, bl
jne 0x414318
push 0x18
call fcn.004ea353
mov edi, eax
add esp, 4
test edi, edi
je 0x4141b3
mov dword [edi + 4], 0
mov dword [edi], vtable.COutFileStream.0
mov dword [edi + 8], 0xffffffff
jmp 0x4141b5
xor edi, edi
mov dword [esi + 0x94], edi
mov dword [ebp - 0x64], edi
test edi, edi
je 0x4141c8
mov eax, dword [edi]
push edi
call dword [eax + 4]
xor eax, eax
mov byte [ebp - 4], 0xd
cmp byte [esi + 0x58], al
mov ecx, dword [esi + 0x94]
setne al
lea eax, [eax*2 + 2]
push eax
push dword [ebp - 0x80]
call fcn.00413290
test al, al
jne 0x414283
lea eax, [ebp - 0x80]
push eax
lea ecx, [ebp - 0xa4]
call fcn.00414980
add esp, 4
mov byte [ebp - 4], 0xe
mov eax, dword [esi + 0x18]
push dword [ebp - 0xa4]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
push dword [ebp - 0xa4]
mov esi, eax
call fcn.004ea2dd
add esp, 4
mov byte [ebp - 4], 8
test esi, esi
je 0x414270
test edi, edi
je 0x414239
mov eax, dword [edi]
push edi
call dword [eax + 8]
push dword [ebp - 0x80]
call fcn.004ea2dd
push dword [ebp - 0xb0]
call fcn.004ea2dd
add esp, 8
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 1
call fcn.00402350
push dword [ebp - 0x5c]
call fcn.004ea2dd
add esp, 4
mov eax, esi
jmp 0x41440d
test edi, edi
je 0x414024
mov eax, dword [edi]
push edi
call dword [eax + 8]
jmp 0x414024
cmp byte [esi + 0x58], 0
je 0x4142ea
mov eax, dword [esi + 0x94]
push 0
mov ecx, dword [eax]
push 0
push dword [esi + 0x54]
push dword [esi + 0x50]
push eax
call dword [ecx + 0x10]
mov ebx, eax
test ebx, ebx
je 0x4142ea
mov byte [ebp - 4], 8
test edi, edi
je 0x4142b3
mov eax, dword [edi]
push edi
call dword [eax + 8]
push dword [ebp - 0x80]
call fcn.004ea2dd
push dword [ebp - 0xb0]
call fcn.004ea2dd
add esp, 8
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 1
call fcn.00402350
push dword [ebp - 0x5c]
call fcn.004ea2dd
add esp, 4
mov eax, ebx
jmp 0x41440d
test edi, edi
je 0x4142f4
mov eax, dword [edi]
push edi
call dword [eax + 4]
mov ecx, dword [esi + 0x98]
test ecx, ecx
je 0x414304
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ebx, dword [ebp - 0x84]
mov dword [esi + 0x98], edi
mov dword [ebx], edi
mov byte [ebp - 4], 8
jmp 0x41431e
mov ebx, dword [ebp - 0x84]
lea eax, [ebp - 0x80]
push eax
lea ecx, [esi + 0x38]
call fcn.00402690
push dword [ebp - 0x80]
call fcn.004ea2dd
push dword [ebp - 0xb0]
call fcn.004ea2dd
add esp, 8
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 1
call fcn.00402350
jmp 0x41435d
mov ebx, dword [ebp - 0x84]
mov dword [ebx], 0
cmp byte [esi + 0xba], 0
je 0x414049
push 0x20
call fcn.004ea353
add esp, 4
test eax, eax
je 0x41438e
mov dword [eax + 4], 0
mov dword [eax], vtable.COutStreamWithCRC.0
mov dword [eax + 8], 0
jmp 0x414390
xor eax, eax
lea ecx, [esi + 0xa0]
push eax
mov dword [esi + 0x9c], eax
call fcn.00406c10
mov edi, dword [esi + 0x9c]
mov dword [ebp - 0x64], edi
test edi, edi
je 0x4143b5
mov eax, dword [edi]
push edi
call dword [eax + 4]
mov byte [ebp - 4], 0xf
push dword [ebx]
mov ecx, dword [esi + 0x9c]
call fcn.00406610
mov ecx, dword [ebx]
test ecx, ecx
je 0x4143d2
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
push dword [ebp - 0x5c]
mov dword [ebx], edi
mov eax, dword [esi + 0x9c]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], 0xffffffff
call fcn.004ea2dd
add esp, 4
xor eax, eax
jmp 0x41440d
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.004e9eea
mov esp, ebp
pop ebp
ret 0x10