Function at 0x4043b0
Capabilities:
Delete directory
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x431c90
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push ebp
push esi
push edi
push ecx
lea eax, [esp + 0x4c]
xor edi, edi
mov ecx, esp
mov dword [esp + 0x20], esp
push eax
mov dword [esp + 0x48], edi
xor ebp, ebp
call fcn.0042708d
call fcn.00404230
add esp, 4
cmp eax, edi
jne 0x40464e
lea ecx, [esp + 0x24]
call fcn.00422ba2
push ecx
lea edx, [esp + 0x4c]
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
mov byte [esp + 0x48], 1
call fcn.0042708d
lea eax, [esp + 0x14]
push eax
call fcn.00404820
add esp, 8
push 0x44038c
lea ecx, [esp + 0x18]
mov byte [esp + 0x44], 2
call fcn.00427386
lea ecx, [esp + 0x14]
lea eax, [esp + 0x10]
push ecx
push ecx
mov edx, esp
mov dword [esp + 0x20], esp
lea ecx, [esp + 0x50]
push eax
push ecx
push edx
mov byte [esp + 0x54], 3
call fcn.00403740
add esp, 0xc
lea edx, [esp + 0x24]
push edx
call fcn.00403960
add esp, 0xc
lea ecx, [esp + 0x14]
mov byte [esp + 0x40], 5
call fcn.00427318
lea eax, [esp + 0x24]
push 0x5c
push eax
push ecx
lea edx, [esp + 0x28]
mov ecx, esp
mov dword [esp + 0x24], esp
push edx
call fcn.0042708d
call fcn.00403d20
mov eax, dword [esp + 0x38]
add esp, 0xc
xor esi, esi
cmp eax, edi
jle 0x404518
mov bl, 6
mov eax, dword [esp + 0x28]
push 1
lea edx, [esp + 0x14]
lea ecx, [eax + esi*4]
lea eax, [esp + 0x1c]
push ecx
push edx
push eax
call fcn.004050b0
add esp, 0x10
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x44], bl
call fcn.00427451
lea ecx, [esp + 0x18]
mov byte [esp + 0x40], 5
call fcn.00427318
push ecx
lea edx, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x24], esp
push edx
call fcn.0042708d
call fcn.00404230
add esp, 4
test eax, eax
jne 0x40450b
lea eax, [esp + 0x10]
push eax
call fcn.00404fd0
add esp, 4
test eax, eax
je 0x404516
mov ebp, 1
inc edi
mov eax, dword [esp + 0x2c]
inc esi
cmp esi, eax
jl 0x40449f
jmp 0x404518
xor ebp, ebp
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x4045ac
test ebp, ebp
je 0x4045ac
push str.1234567890.tmp
lea ecx, [esp + 0x1c]
call fcn.00427386
lea ecx, [esp + 0x18]
push 1
lea edx, [esp + 0x14]
push ecx
lea eax, [esp + 0x54]
push edx
push eax
mov byte [esp + 0x50], 7
call fcn.004050b0
add esp, 0x10
lea ecx, [esp + 0x18]
mov byte [esp + 0x40], 9
call fcn.00427318
mov ecx, dword [esp + 0x4c]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
jne 0x40458c
xor ebp, ebp
jmp 0x40459e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0x4c]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x4c]
mov byte [esp + 0x40], 5
call fcn.00427318
test edi, edi
jle 0x4045fe
mov esi, edi
mov edi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov bl, 0xa
mov eax, dword [esp + 0x10]
push eax
call edi
push ecx
lea edx, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x24], esp
push edx
call fcn.0042708d
lea eax, [esp + 0x50]
push eax
call fcn.00404750
add esp, 8
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x44], bl
call fcn.00427451
lea ecx, [esp + 0x4c]
mov byte [esp + 0x40], 5
call fcn.00427318
dec esi
jne 0x4045ba
lea ecx, [esp + 0x1c]
mov byte [esp + 0x40], 2
call fcn.00427318
lea ecx, [esp + 0x10]
mov byte [esp + 0x40], 1
call fcn.00427318
lea ecx, [esp + 0x24]
mov byte [esp + 0x40], 0
call fcn.00422bd5
lea ecx, [esp + 0x48]
mov dword [esp + 0x40], 0xffffffff
call fcn.00427318
mov eax, ebp
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
cmp dword [esp + 0x4c], edi
je 0x4046a8
push str.1234567890.tmp
lea ecx, [esp + 0x50]
call fcn.00427386
lea ecx, [esp + 0x4c]
push 1
lea edx, [esp + 0x4c]
push ecx
lea eax, [esp + 0x24]
mov bl, 0xb
push edx
push eax
mov byte [esp + 0x50], bl
call fcn.004050b0
add esp, 0x10
push eax
lea ecx, [esp + 0x4c]
mov byte [esp + 0x44], 0xc
call fcn.00427451
lea ecx, [esp + 0x1c]
mov byte [esp + 0x40], bl
call fcn.00427318
mov byte [esp + 0x40], 0
lea ecx, [esp + 0x4c]
jmp 0x4046de
push ecx
lea edx, [esp + 0x4c]
mov ecx, esp
mov dword [esp + 0x50], esp
push edx
call fcn.0042708d
lea eax, [esp + 0x50]
push eax
call fcn.00404ea0
add esp, 8
push eax
lea ecx, [esp + 0x4c]
mov byte [esp + 0x44], 0xd
call fcn.00427451
mov byte [esp + 0x40], 0
lea ecx, [esp + 0x4c]
call fcn.00427318
mov ecx, dword [esp + 0x48]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
jne 0x40470f
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x404726
push eax
mov esi, 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0x48]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x48]
mov dword [esp + 0x40], 0xffffffff
call fcn.00427318
mov ecx, dword [esp + 0x38]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x34
ret