Function at 0x40bb20
Capabilities:
Delete directory
Set current directory
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4c488d
mov eax, dword fs:[0]
push eax
sub esp, 0x308
mov eax, dword [0x4ea6c4]
xor eax, esp
mov dword [esp + 0x300], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4ea6c4]
xor eax, esp
push eax
lea eax, [esp + 0x31c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x32c]
xor edi, edi
push 0xffffffffffffffff
push edi
push eax
mov esi, 7
lea eax, [esp + 0x4c]
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x64], esi
mov dword [esp + 0x60], edi
mov word [esp + 0x50], di
call fcn.004017d0
push 0x10
lea ecx, [esp + 0x44]
mov dword [esp + 0x328], edi
call fcn.0040a9b0
add esp, 4
mov dword [esp + 0x5c], edi
mov dword [esp + 0x60], edi
mov dword [esp + 0x7c], edi
mov dword [esp + 0x80], edi
mov dword [esp + 0x9c], esi
mov dword [esp + 0x98], edi
mov word [esp + 0x88], di
push 4
mov byte [esp + 0x328], 1
call fcn.004abce7
add esp, 4
cmp eax, edi
je 0x40bbed
mov ebx, eax
mov dword [eax], 0xffffffff
mov dword [esp + 0x1c], ebx
jmp 0x40bbf3
mov dword [esp + 0x1c], edi
mov ebx, edi
mov dword [esp + 0x20], ebx
lea eax, [esp + 0x40]
push 0x4cbb8c
push eax
lea esi, [esp + 0x2c]
mov byte [esp + 0x32c], 2
call fcn.00401ca0
add esp, 8
push eax
lea ecx, [esp + 0x60]
mov esi, ebx
mov byte [esp + 0x328], 3
call fcn.004259a0
mov ebp, 8
mov byte [esp + 0x324], 2
cmp dword [esp + 0x3c], ebp
mov bl, al
jb 0x40bc4b
mov ecx, dword [esp + 0x28]
push ecx
call fcn.004abbe4
add esp, 4
test bl, bl
je 0x40be4c
lea esi, [esp + 0x5c]
call fcn.00425b70
test al, al
jne 0x40bcd0
mov eax, dword [esp + 0x7c]
and eax, 0x10
xor ecx, ecx
lea edx, [esp + 0x84]
or eax, ecx
push edx
lea eax, [esp + 0x44]
lea edi, [esp + 0x28]
push eax
je 0x40bc9e
call fcn.004028e0
push eax
mov byte [esp + 0x330], 4
call fcn.0040bb20
add esp, 0xc
mov byte [esp + 0x324], 2
jmp 0x40bcb3
call fcn.004028e0
add esp, 8
lea edi, [esp + 0x24]
call fcn.0040bad0
movzx eax, al
cdq
cmp dword [esp + 0x3c], ebp
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], eax
jb 0x40bcce
mov ecx, dword [esp + 0x28]
push ecx
call fcn.004abbe4
add esp, 4
xor edi, edi
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x40bce2
call fcn.004abbe4
add esp, 4
xor edi, edi
mov ebx, dword [esp + 0x1c]
mov eax, dword [ebx]
lea edx, [esp + 0xc4]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
setne al
test al, al
je 0x40be50
lea edi, [esp + 0x5c]
lea ecx, [esp + 0xc4]
call fcn.00425a20
mov edx, dword [esp + 0x7c]
mov eax, edx
and eax, 0x10
xor ecx, ecx
or eax, ecx
je 0x40bd89
mov ecx, dword [esp + 0x98]
test ecx, ecx
je 0x40bd89
cmp dword [esp + 0x9c], ebp
mov eax, dword [esp + 0x88]
jae 0x40bd45
lea eax, [esp + 0x88]
cmp word [eax], 0x2e
jne 0x40bd89
cmp ecx, 1
je 0x40bce0
jae 0x40bd62
call fcn.004ac22f
mov ecx, dword [esp + 0x98]
mov edx, dword [esp + 0x7c]
cmp dword [esp + 0x9c], ebp
mov eax, dword [esp + 0x88]
jae 0x40bd79
lea eax, [esp + 0x88]
cmp word [eax + 2], 0x2e
jne 0x40bd89
cmp ecx, 2
je 0x40bce0
and edx, 0x10
mov eax, edx
xor ecx, ecx
or eax, ecx
lea ecx, [esp + 0x84]
lea edx, [esp + 0x40]
push ecx
lea edi, [esp + 0x28]
push edx
je 0x40bddf
call fcn.004028e0
push eax
mov byte [esp + 0x330], 5
call fcn.0040bb20
add esp, 0xc
add dword [esp + 0x14], eax
mov byte [esp + 0x324], 2
adc dword [esp + 0x18], edx
cmp dword [esp + 0x3c], ebp
jb 0x40bce0
mov eax, dword [esp + 0x28]
push eax
jmp 0x40bcd8
call fcn.004028e0
mov eax, dword [esp + 0x30]
add esp, 8
cmp dword [esp + 0x3c], ebp
jae 0x40bdf5
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, dword [esp + 0x28]
and eax, 0xfffffffe
cmp dword [esp + 0x3c], ebp
jae 0x40be0d
lea ecx, [esp + 0x28]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [esp + 0x3c], ebp
mov eax, dword [esp + 0x28]
jae 0x40be23
lea eax, [esp + 0x28]
push eax
call esi
cmp eax, 1
sete al
movzx eax, al
cdq
add dword [esp + 0x14], eax
adc dword [esp + 0x18], edx
cmp dword [esp + 0x3c], ebp
jb 0x40bce0
mov ecx, dword [esp + 0x28]
push ecx
jmp 0x40bcd8
mov ebx, dword [esp + 0x1c]
mov eax, dword [ebx]
cmp eax, 0xffffffff
mov esi, dword [sym.imp.KERNEL32.dll_FindClose]
je 0x40be6a
push eax
call esi
test eax, eax
je 0x40be6a
mov dword [ebx], 0xffffffff
push 0x20
lea ecx, [esp + 0x44]
call fcn.0040a9b0
add esp, 4
mov dword [esp + 0xc0], 7
mov dword [esp + 0xbc], edi
mov word [esp + 0xac], di
lea ecx, [esp + 0xa8]
mov byte [esp + 0x324], 6
call fcn.0040b6a0
test al, al
je 0x40bf0d
push 0x20
lea ecx, [esp + 0xac]
call fcn.0040a9b0
add esp, 4
lea eax, [esp + 0x40]
lea ecx, [esp + 0xa8]
call fcn.00407b60
test eax, eax
jne 0x40bf0d
lea edx, [esp + 0x40]
push edx
lea edi, [esp + 0x28]
call fcn.0040ae80
add esp, 4
cmp dword [eax + 0x18], ebp
jb 0x40beea
mov eax, dword [eax + 4]
jmp 0x40beed
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
cmp dword [esp + 0x3c], ebp
jb 0x40bf07
mov eax, dword [esp + 0x28]
push eax
call fcn.004abbe4
add esp, 4
mov ebx, dword [esp + 0x1c]
xor edi, edi
cmp dword [esp + 0x58], ebp
mov eax, dword [esp + 0x44]
jae 0x40bf1b
lea eax, [esp + 0x44]
push 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [esp + 0x58], ebp
mov eax, dword [esp + 0x44]
jae 0x40bf32
lea eax, [esp + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x40bf46
add dword [esp + 0x14], 1
adc dword [esp + 0x18], edi
cmp dword [esp + 0xc0], ebp
jb 0x40bf5f
mov ecx, dword [esp + 0xac]
push ecx
call fcn.004abbe4
add esp, 4
mov dword [esp + 0xc0], 7
mov dword [esp + 0xbc], edi
mov word [esp + 0xac], di
mov eax, dword [ebx]
cmp eax, 0xffffffff
je 0x40bf8d
push eax
call esi
test eax, eax
je 0x40bf8d
mov dword [ebx], 0xffffffff
push ebx
call fcn.004abbe4
add esp, 4
cmp dword [esp + 0x9c], ebp
jb 0x40bfaf
mov edx, dword [esp + 0x88]
push edx
call fcn.004abbe4
add esp, 4
cmp dword [esp + 0x58], ebp
mov dword [esp + 0x9c], 7
mov dword [esp + 0x98], edi
mov word [esp + 0x88], di
jb 0x40bfdc
mov eax, dword [esp + 0x44]
push eax
call fcn.004abbe4
add esp, 4
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x31c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x300]
xor ecx, esp
call fcn.004abc64
add esp, 0x314
ret