Function at 0x438180
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57ca20
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x5f6998]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x20], ecx
lea ecx, [ebp - 0x40]
call fcn.00452ef4
mov dword [ebp - 4], 0
push 0x58df78
lea ecx, [ebp - 0x10]
call fcn.00403d90
mov byte [ebp - 4], 1
mov edi, dword [ebp + 8]
push edi
lea eax, [ebp - 0x10]
push str._s.
push eax
call fcn.004038b0
mov ecx, dword [ebp - 0x10]
add esp, 0xc
push 0
push ecx
lea ecx, [ebp - 0x40]
call fcn.00452f9b
test eax, eax
je 0x438351
mov ebx, 2
jmp 0x438200
lea ecx, [ebp - 0x40]
call fcn.00452cdc
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x24], eax
call fcn.00452eb6
test eax, eax
jne 0x438347
push 0x58df78
lea ecx, [ebp + 8]
call fcn.00403d90
mov byte [ebp - 4], bl
lea edx, [ebp - 0x1c]
push edx
lea ecx, [ebp - 0x40]
call fcn.00453277
mov byte [ebp - 4], 3
mov edx, dword [eax]
test edx, edx
jne 0x438245
xor eax, eax
jmp 0x43825e
mov eax, edx
lea esi, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, ebx
test cx, cx
jne 0x438250
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [ebp + 8]
call fcn.00402a10
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43828a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [ebp - 0x40]
mov eax, dword [edx + 0x38]
push 0x10
lea ecx, [ebp - 0x40]
call eax
push 0x58df78
test eax, eax
je 0x4382d6
lea ecx, [ebp - 0x14]
call fcn.00403d90
mov byte [ebp - 4], 5
mov ecx, dword [ebp + 8]
push ecx
push edi
lea edx, [ebp - 0x14]
push 0x58f1dc
push edx
call fcn.004038b0
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x20]
add esp, 0x10
push eax
call fcn.00438180
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x14]
jmp 0x438308
lea ecx, [ebp - 0x18]
call fcn.00403d90
mov byte [ebp - 4], 7
mov ecx, dword [ebp + 8]
push ecx
push edi
lea edx, [ebp - 0x18]
push 0x58f1dc
push edx
call fcn.004038b0
mov eax, dword [ebp - 0x18]
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x438324
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x438347
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [ebp - 0x24], 0
jne 0x438200
lea ecx, [ebp - 0x40]
call fcn.00452bf6
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x4383ab
mov byte [ebp - 4], al
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x438386
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00452f26
xor eax, eax
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
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4383ce
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00452f26
mov eax, 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