Function at 0x100122e0
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004cf08
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x1007f008]
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 ecx, 0x10084fe6
call fcn.10048ed5
push 0
push esi
call fcn.100157f0
mov ecx, eax
call fcn.100159b0
test al, al
jne 0x10012332
mov al, 1
jmp 0x100125fc
mov ecx, esi
call fcn.1003efe0
cmp eax, 0xffffffff
je 0x1001234e
mov edx, eax
and edx, 0xfffffffa
cmp edx, eax
je 0x1001234e
mov ecx, esi
call fcn.1003eef0
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x10012358
mov eax, dword [esi]
mov edi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push eax
call edi
test eax, eax
jne 0x100125e8
mov dword [ebp - 4], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 3
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
mov dword [ebp - 4], 4
lea edx, [ebp - 0x2c]
mov ecx, esi
call fcn.1003f670
test al, al
je 0x100123c9
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
call edi
test eax, eax
je 0x100123c9
mov dword [ebp - 4], 5
lea ecx, [ebp - 0x2c]
call fcn.100080f0
mov dword [ebp - 4], 0xffffffff
jmp 0x100125e1
mov dword [ebp - 4], 9
lea ecx, [ebp - 0x2c]
call fcn.100080f0
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [0x100832f8], 0
mov ebx, eax
je 0x100124a3
push 0
mov ecx, 0x100832f4
call fcn.100285a0
mov ecx, dword [0x100832f8]
cmp byte [ecx + 0x54], 0
je 0x100124a3
cmp dword [ecx + 0x58], 2
jb 0x100124a3
mov al, byte [ecx + 0x5c]
lea ecx, [ebp - 0x2c]
mov byte [ebp - 0x31], al
call fcn.10006d30
mov dword [ebp - 4], 0xd
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x10012440
mov eax, dword [esi]
push ebx
push eax
lea eax, [ebp - 0x2c]
push str.MyRemoveDirectory_dir:_s__error:_u
push eax
call fcn.1002e560
add esp, 0x10
lea eax, [ebp - 0x2c]
mov ecx, 0x100832f4
push 0x1bc
push str.RC::RCFileShre::DeleteDirR3
push str.d:jenkinsworkspacepc_2345mpcsafe_build_rhino_safe_src_fileshre_fileshredll_src_rcfileshre.cpp
push eax
push 2
call fcn.100295e0
cmp byte [ebp - 0x31], 0
je 0x10012486
lea eax, [ebp - 0x2c]
mov ecx, 0x100832f4
push eax
call fcn.10029950
mov dword [ebp - 4], 0xe
lea ecx, [ebp - 0x2c]
call fcn.100080f0
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 4], 0xffffffff
cmp ebx, 5
jne 0x100125e8
mov ecx, esi
call fcn.1002ae00
test al, al
je 0x100125e8
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x100124c5
mov eax, dword [esi]
push eax
call edi
test eax, eax
jne 0x100125e8
mov dword [ebp - 4], 0x12
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0x15
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
mov dword [ebp - 4], 0x16
lea edx, [ebp - 0x2c]
mov ecx, esi
call fcn.1003f670
test al, al
je 0x10012534
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
call edi
test eax, eax
je 0x10012534
mov dword [ebp - 4], 0x17
lea ecx, [ebp - 0x2c]
call fcn.100080f0
mov dword [ebp - 4], 0xffffffff
jmp 0x100125e1
mov dword [ebp - 4], 0x1b
lea ecx, [ebp - 0x2c]
call fcn.100080f0
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 4], 0xffffffff
mov ecx, 0x100832f4
push 2
call fcn.10029550
mov ebx, eax
test ebx, ebx
je 0x100125e8
lea ecx, [ebp - 0x2c]
call fcn.10006d30
mov dword [ebp - 4], 0x1f
mov edi, esi
cmp dword [esi + 0x14], 8
jb 0x10012580
mov edi, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
lea eax, [ebp - 0x2c]
push str.MyRemoveDirectory_dir:_s__error:_u
push eax
call fcn.1002e560
add esp, 0x10
lea eax, [ebp - 0x2c]
mov ecx, 0x100832f4
push 0x1c4
push str.RC::RCFileShre::DeleteDirR3
push str.d:jenkinsworkspacepc_2345mpcsafe_build_rhino_safe_src_fileshre_fileshredll_src_rcfileshre.cpp
push eax
push 2
call fcn.100295e0
cmp ebx, 1
jbe 0x100125cb
lea eax, [ebp - 0x2c]
mov ecx, 0x100832f4
push eax
call fcn.10029950
mov dword [ebp - 4], 0x20
lea ecx, [ebp - 0x2c]
call fcn.100080f0
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 4], 0xffffffff
push 0
push esi
call fcn.100157f0
mov ecx, eax
call fcn.100159b0
test al, al
sete al
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.10046e4e
mov esp, ebp
pop ebp
ret 4