Function at 0x404040
Capabilities:
Delete directory

Disassembly:
mov eax, dword [esp + 4]
sub esp, 8
push edi
xor edi, edi
cmp eax, edi
je 0x40431a
push ebx
push ebp
push esi
push eax
call fcn.00402630
mov ebx, eax
mov eax, dword [0x453a0c]
add eax, 0x88
push eax
call fcn.0041dfb0
mov ecx, dword [0x453a0c]
add ecx, 0x94
push ecx
call fcn.0041dfb0
mov edx, dword [0x453a0c]
add edx, 0xa8
push edx
call fcn.0041dfb0
mov eax, dword [0x453a0c]
add eax, 0xa4
push eax
call fcn.0041dfb0
mov ecx, dword [0x453a0c]
add ecx, 0x80
push ecx
call fcn.0041dfb0
mov edx, dword [0x453a0c]
add edx, 0x8c
push edx
call fcn.0041dfb0
mov eax, dword [0x453a0c]
add eax, 0x90
push eax
call fcn.0041dfb0
mov ecx, dword [0x453a0c]
add ecx, 0xcc
push ecx
call fcn.0041dfb0
mov edx, dword [0x453a0c]
add edx, 0xd0
push edx
call fcn.0041dfb0
mov eax, dword [0x453a0c]
add eax, 0xd4
push eax
call fcn.0041dfb0
mov ecx, dword [0x453a0c]
add ecx, 0x26c
push ecx
call fcn.0041dfb0
mov edx, dword [0x453a0c]
add edx, 0x1f4
push edx
call fcn.0041dfb0
call fcn.0043bf10
mov eax, dword [0x453a0c]
add eax, 0xc0
push eax
call fcn.0041dfb0
call fcn.00423490
call fcn.004244f0
call fcn.004250a0
call fcn.00433190
call fcn.00416420
call fcn.00423350
call fcn.004341d0
call fcn.00430270
mov ecx, dword [0x453a0c]
push 1
mov dword [ecx + 0x1d0], edi
mov edx, dword [0x453a0c]
mov dword [edx + 0x1d4], edi
call fcn.004043c0
mov eax, dword [esp + 0x58]
mov esi, dword [sym.imp.USER32.dll_DestroyIcon]
add esp, 0x3c
mov eax, dword [eax + 0xac]
cmp eax, edi
je 0x4041ad
push eax
call esi
mov ecx, dword [esp + 0x1c]
mov dword [ecx + 0xac], edi
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 0x1b8]
cmp eax, edi
je 0x4041c8
push eax
call esi
mov eax, dword [esp + 0x1c]
mov dword [eax + 0x1b8], edi
mov ecx, dword [0x453a0c]
add ecx, 0xbc
push ecx
call fcn.0041dfb0
mov edx, dword [0x453a0c]
add edx, 0x37c
push edx
call fcn.0041dfb0
mov ecx, dword [0x453a0c]
mov esi, dword [0x453468]
add esp, 8
xor edx, edx
mov ebp, dword [ecx + 0x1a8]
mov eax, dword [ecx + 0x9c]
cmp ebp, edi
mov dword [esp + 0x14], eax
sete dl
or ebp, 0xffffffff
cmp edx, edi
mov dword [esp + 0x10], edx
jne 0x40422a
cmp eax, ebp
je 0x40422a
push eax
call esi
mov ecx, dword [0x453a0c]
mov dword [ecx + 0x9c], ebp
mov eax, dword [0x453a0c]
mov eax, dword [eax + 0x9c]
cmp eax, ebp
je 0x40424e
push eax
call esi
mov ecx, dword [0x453a0c]
mov dword [ecx + 0x9c], ebp
mov edx, dword [esp + 0x1c]
push edx
call fcn.00404330
mov eax, dword [0x453a0c]
add esp, 4
mov eax, dword [eax + 0x98]
cmp eax, edi
je 0x404286
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov ecx, dword [0x453a0c]
add ecx, 0x98
push ecx
call fcn.0041dfb0
add esp, 4
mov ebp, dword [esp + 0x10]
cmp ebp, edi
je 0x40429b
cmp dword [0x453a20], edi
je 0x40429b
call fcn.0043bbd0
call fcn.00404320
cmp ebx, dword [esp + 0x1c]
je 0x4042af
push ebx
call fcn.00402630
add esp, 4
mov edx, dword [esp + 0x1c]
lea ecx, [edx + 0x168]
call fcn.004043a0
mov eax, dword [esp + 0x1c]
mov ebx, dword [sym.imp.MSVCRT.dll_free]
mov eax, dword [eax + 0x2d4]
cmp eax, edi
je 0x4042d8
push eax
call ebx
add esp, 4
mov esi, 0x2d8
mov ecx, dword [esp + 0x1c]
mov eax, dword [esi + ecx]
cmp eax, edi
je 0x4042ee
push eax
call ebx
add esp, 4
add esi, 4
cmp esi, 0x358
jl 0x4042dd
lea edx, [esp + 0x1c]
push edx
call fcn.0041dfb0
add esp, 4
cmp ebp, edi
pop esi
pop ebp
pop ebx
je 0x40431a
mov eax, dword [esp + 8]
push eax
call fcn.00402c60
add esp, 4
pop edi
add esp, 8
ret