Function at 0x4156a0
Capabilities:
Delete directory
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x461088
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x47f534]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov dword [esp + 0x48], 0
lea ecx, [esp + 0x28]
call fcn.00438e8b
mov byte [esp + 0x48], 1
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x18]
call fcn.00403630
mov byte [esp + 0x48], 2
push 1
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x1c]
call fcn.004066f0
mov byte [esp + 0x48], 3
mov eax, dword [eax]
push 0x46d2e8
push eax
call fcn.0044978e
add esp, 8
test eax, eax
setne bl
mov byte [esp + 0x48], 2
lea ecx, [esp + 0x1c]
call fcn.00403830
test bl, bl
je 0x41573c
push 1
push 0x46d2e8
lea ecx, [esp + 0x1c]
call fcn.00404ee0
push 3
push 0x46d2ec
lea ecx, [esp + 0x1c]
call fcn.00404ee0
mov edx, dword [esp + 0x14]
push 0
push edx
lea ecx, [esp + 0x30]
call fcn.00438f17
test eax, eax
je 0x415850
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov bl, 4
lea esp, [esp]
lea ecx, [esp + 0x28]
call fcn.00438d1c
mov ebp, eax
mov eax, dword [esp + 0x28]
mov edx, dword [eax + 0x38]
push 0x10
lea ecx, [esp + 0x2c]
call edx
test eax, eax
je 0x4157e9
lea ecx, [esp + 0x28]
call fcn.00438e52
test eax, eax
jne 0x4157e9
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x2c]
call fcn.004390b6
mov byte [esp + 0x48], bl
mov eax, dword [esp + 0x18]
push ecx
add eax, 0xfffffff0
mov esi, esp
mov dword [esp + 0x24], esp
push eax
mov dword [esp + 0x2c], esi
call fcn.004036b0
add eax, 0x10
add esp, 4
mov dword [esi], eax
mov byte [esp + 0x4c], 6
mov byte [esp + 0x4c], bl
call fcn.004156a0
add esp, 4
mov byte [esp + 0x48], 2
mov eax, dword [esp + 0x18]
jmp 0x41582c
mov edx, dword [esp + 0x28]
mov eax, dword [edx + 0x38]
push 0x10
lea ecx, [esp + 0x2c]
call eax
test eax, eax
jne 0x415848
lea ecx, [esp + 0x28]
call fcn.00438e52
test eax, eax
jne 0x415848
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x2c]
call fcn.004390b6
mov byte [esp + 0x48], 8
mov edx, dword [esp + 0x1c]
push edx
call edi
mov byte [esp + 0x48], 2
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x415848
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test ebp, ebp
jne 0x415770
lea ecx, [esp + 0x28]
call fcn.00438c4c
push 1
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x58]
call fcn.004066f0
mov byte [esp + 0x48], 0xa
mov eax, dword [eax]
push 0x46d2e8
push eax
call fcn.0044978e
add esp, 8
test eax, eax
sete bl
mov byte [esp + 0x48], 2
lea ecx, [esp + 0x1c]
call fcn.00403830
test bl, bl
je 0x4158ae
mov edx, dword [esp + 0x50]
mov eax, dword [edx - 0xc]
lea ecx, [eax - 1]
lea eax, [esp + 0x50]
push eax
mov eax, 1
call fcn.0040f2b0
mov ecx, dword [esp + 0x50]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov byte [esp + 0x48], 1
lea ecx, [esp + 0x14]
call fcn.00403830
mov byte [esp + 0x48], 0
lea ecx, [esp + 0x28]
call fcn.00438eaf
mov dword [esp + 0x48], 0xffffffff
lea ecx, [esp + 0x50]
call fcn.00403830
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret