Function at 0x40b230
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57c72d
mov eax, dword fs:[0]
push eax
sub esp, 0x60
push ebx
push esi
push edi
mov eax, dword [0x59e080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x6c]
call fcn.0040b670
lea ecx, [ebp - 0x44]
call fcn.00408160
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x6c]
push 0
mov dword [ebp - 4], 0
push dword [esi]
call fcn.0040ba50
test al, al
je 0x40b299
mov ebx, dword [ebp - 0x4c]
mov eax, ebx
shr eax, 4
test al, 1
jne 0x40b2ba
push 0x10b
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebp - 0x44]
call fcn.0051c12c
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push dword [ebp - 0x44]
shr ebx, 0xa
mov dword [ebp - 4], 0xffffffff
call fcn.0051c12c
add esp, 4
and bl, 1
jne 0x40b422
push esi
lea ecx, [ebp - 0x18]
call fcn.00407f80
mov esi, dword [ebp - 0x14]
mov dword [ebp - 4], 1
cmp dword [ebp - 0x10], esi
jne 0x40b2fb
lea ecx, [ebp - 0x18]
call fcn.00408910
mov esi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
mov ecx, 0x5c
mov word [eax + esi*2], cx
inc esi
xor ecx, ecx
mov word [eax + esi*2], cx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x34], 0xffffffff
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 2
call fcn.00408160
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x34]
call fcn.0040c240
lea ecx, [ebp - 0x6c]
call fcn.0040b670
lea ecx, [ebp - 0x44]
call fcn.00408160
lea eax, [ebp - 0x6c]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x34]
xor bl, bl
xor edi, edi
call fcn.0040c150
test al, al
je 0x40b3f2
cmp esi, dword [ebp - 0x14]
jae 0x40b371
mov eax, dword [ebp - 0x18]
xor ecx, ecx
mov dword [ebp - 0x14], esi
mov word [eax + esi*2], cx
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x18]
call fcn.00408490
mov eax, dword [ebp - 0x4c]
shr eax, 4
test al, 1
je 0x40b39e
lea eax, [ebp - 0x18]
push eax
call fcn.0040b230
test al, al
jne 0x40b3b4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov bl, 1
jmp 0x40b3b2
push dword [ebp - 0x18]
call fcn.0040ae30
test al, al
jne 0x40b3b4
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor bl, bl
mov edi, eax
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x34]
call fcn.0040c150
test al, al
jne 0x40b360
test bl, bl
je 0x40b3f2
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebp - 0x44]
call fcn.0051c12c
push dword [ebp - 0x30]
call fcn.0051c12c
add esp, 8
lea ecx, [ebp - 0x34]
call fcn.0040b6c0
push dword [ebp - 0x18]
jmp 0x40b29c
push dword [ebp - 0x44]
call fcn.0051c12c
push dword [ebp - 0x30]
call fcn.0051c12c
add esp, 8
lea ecx, [ebp - 0x34]
call fcn.0040b6c0
push dword [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
call fcn.0051c12c
mov esi, dword [ebp + 8]
add esp, 4
push 0
push dword [esi]
call fcn.0040b570
test al, al
je 0x40b2a4
cmp byte [0x59fa14], 0
mov eax, dword [esi]
push eax
jne 0x40b47b
lea eax, [ebp - 0x24]
push eax
call fcn.00409260
push dword [eax]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push dword [ebp - 0x24]
mov esi, eax
call fcn.0051c12c
add esp, 4
test esi, esi
je 0x40b2a4
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x40b2a4
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4