Function at 0x403830
Capabilities:
Delete directory
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x45e5a8
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push ebp
push esi
push edi
mov eax, dword [0x47b660]
xor eax, esp
push eax
lea eax, [esp + 0x4c]
mov dword fs:[0], eax
mov esi, ecx
call fcn.00424a60
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x403873
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebp, [eax + 0x10]
mov dword [esp + 0x20], ebp
mov dword [esp + 0x54], 0
call fcn.00424a60
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4038a5
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x18], edi
lea ecx, [esp + 0x30]
mov byte [esp + 0x54], 1
call fcn.0042dd21
mov byte [esp + 0x54], 2
mov ecx, dword [esp + 0x5c]
push ecx
lea ecx, [esp + 0x20]
call fcn.00404160
push 4
mov bl, 3
push str..
lea ecx, [esp + 0x24]
mov byte [esp + 0x5c], bl
call fcn.004046e0
mov edx, dword [esp + 0x1c]
push 0
push edx
lea ecx, [esp + 0x38]
call fcn.0042ddb9
test eax, eax
je 0x403b29
lea ecx, [esp + 0x30]
call fcn.0042db3e
lea ecx, [esp + 0x30]
mov dword [esp + 0x2c], eax
call fcn.0042dce2
test eax, eax
jne 0x403b1e
mov eax, dword [esp + 0x30]
mov edx, dword [eax + 0x38]
push 0x10
lea ecx, [esp + 0x34]
call edx
test eax, eax
je 0x403a6e
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x34]
call fcn.0042e02a
mov byte [esp + 0x54], 4
mov edx, dword [esp + 0x5c]
mov edi, dword [edx - 0xc]
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, edi
or eax, ecx
jge 0x403972
push edi
lea ecx, [esp + 0x60]
call fcn.00402a70
mov edx, dword [esp + 0x5c]
lea ecx, [esi + 0x78]
call fcn.0040b270
mov eax, dword [esp + 0x5c]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.00442fb3
add esp, 8
test eax, eax
jl 0x403bc0
mov ecx, dword [esp + 0x5c]
cmp eax, dword [ecx - 8]
jg 0x403bc0
mov dword [ecx - 0xc], eax
mov edx, dword [esp + 0x5c]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, dword [esp + 0x5c]
push eax
lea ecx, [esp + 0x1c]
push str.Deleting_Directory__s
push ecx
call fcn.00402c20
mov edx, dword [esp + 0x24]
add esp, 0xc
push edx
push 0x404
mov ecx, esi
call fcn.0042c489
mov ecx, eax
call fcn.0042c573
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
mov ecx, dword [esp + 0x5c]
push ecx
mov ecx, esi
call fcn.00403830
mov edx, dword [esp + 0x5c]
push edx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x403a12
mov eax, dword [esp + 0x5c]
push eax
push str.Deleted_Directory__s
lea ecx, [esp + 0x20]
push ecx
jmp 0x403a21
mov edx, dword [esp + 0x5c]
push edx
push str.Not_Deleted_Directory__s
lea eax, [esp + 0x20]
push eax
call fcn.00402c20
mov edi, dword [esp + 0x24]
add esp, 0xc
push edi
push 0x404
mov ecx, esi
call fcn.0042c489
mov ecx, eax
call fcn.0042c573
mov byte [esp + 0x54], bl
mov eax, dword [esp + 0x5c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403b1e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x403b1e
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x34]
call fcn.0042e02a
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x58], 5
call fcn.00402870
mov byte [esp + 0x54], bl
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x403aaf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x34]
call fcn.0042e02a
mov byte [esp + 0x54], 6
mov edx, dword [eax]
push edx
lea eax, [esp + 0x1c]
push str.Deleting_files__s
push eax
call fcn.00402c20
mov byte [esp + 0x60], bl
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
add esp, 0xc
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403afb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x18]
push edi
push 0x404
mov ecx, esi
call fcn.0042c489
mov ecx, eax
call fcn.0042c573
mov ebp, dword [esp + 0x20]
push ebp
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [esp + 0x2c], 0
jne 0x403904
lea ecx, [esp + 0x30]
call fcn.0042da58
mov byte [esp + 0x54], 2
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403b57
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x54], 1
call fcn.0042dd4a
lea eax, [edi - 0x10]
mov byte [esp + 0x54], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403b86
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
mov dword [esp + 0x54], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403baa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret 4
push 0x80070057
call fcn.00401000
int3