Function at 0x4032aa
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x104c
call fcn.0040ae20
push esi
push edi
xor edi, edi
cmp dword [0x596e80], 0x5b1
jne 0x403356
push edi
lea eax, [ebp - 0x44c]
push eax
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_FoldStringA]
push dword [ebp - 4]
push 0x402c54
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
push edi
push edi
call dword [sym.imp.USER32.dll_ChangeDisplaySettingsA]
push edi
push edi
call dword [sym.imp.KERNEL32.dll_EnumSystemCodePagesW]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea eax, [ebp - 0x18]
push eax
push edi
call dword [sym.imp.GDI32.dll_GetBitmapDimensionEx]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x104c]
push eax
push edi
call dword [sym.imp.SHELL32.dll_ExtractAssociatedIconW]
push edi
call fcn.0040384c
pop ecx
lea esi, [ebp - 0x10]
call fcn.00402ea0
mov ecx, esi
call fcn.00402ec0
push edi
call fcn.00403cfa
push edi
call fcn.00403ce4
push edi
push edi
call fcn.00403835
add esp, 0x10
call fcn.004035ef
push edi
call fcn.00404179
add dword [0x596e80], 0x1134b
push dword [0x596e80]
push edi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [0x595dd0], eax
mov esi, 0x1e6cc
push edi
push edi
call dword [sym.imp.USER32.dll_LoadMenuA]
push edi
push edi
push edi
call dword [sym.imp.USER32.dll_CharToOemBuffA]
lea eax, [ebp - 0x10]
push eax
push edi
push edi
push edi
call dword [sym.imp.GDI32.dll_GetCharABCWidthsFloatA]
dec esi
jne 0x403377
push ebx
call fcn.004031f5
mov ebx, dword [sym.imp.KERNEL32.dll_SetLastError]
push edi
call ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp esi, 0x206d47
jg 0x4033c4
inc esi
cmp esi, 0x4f6a4
jl 0x4033a4
xor esi, esi
cmp dword [0x596e80], edi
jbe 0x40341a
cmp dword [0x596e80], 0xa8
mov eax, dword [0x596e84]
mov al, byte [eax + esi + 0x1134b]
mov ecx, dword [0x595dd0]
mov byte [ecx + esi], al
jne 0x403411
push 0x402c70
push edi
call dword [sym.imp.KERNEL32.dll_SetComputerNameExW]
push 0x402c80
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push edi
lea eax, [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
inc esi
cmp esi, dword [0x596e80]
jb 0x4033ce
xor esi, esi
mov eax, dword [0x596e80]
add eax, esi
cmp eax, 0xe
jne 0x40345a
lea eax, [ebp - 4]
push eax
push 0x402c88
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
push 0x30
lea eax, [ebp - 0x48]
push edi
push eax
mov dword [ebp - 0x4c], edi
call fcn.004043d0
add esp, 0xc
push edi
lea eax, [ebp - 0x4c]
push eax
push 0x402c90
call dword [sym.imp.KERNEL32.dll_SetDefaultCommConfigA]
inc esi
cmp esi, 0x39621
jl 0x40341c
call fcn.00403115
xor esi, esi
push edi
call ebx
cmp esi, 0x26
jne 0x403477
call fcn.004031db
inc esi
cmp esi, 0x6753f
jl 0x40346a
push 0x7b
pop esi
pop ebx
cmp dword [0x596e80], 0x86
jne 0x4034d7
lea eax, [ebp - 0x34]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetCommState]
push edi
push edi
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceW]
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_AddConsoleAliasW]
push edi
call dword [sym.imp.KERNEL32.dll_AddAtomW]
push edi
lea eax, [ebp - 0x104c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
push edi
lea eax, [ebp - 0x84c]
push eax
push edi
push 0x402c9c
push edi
push edi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
dec esi
jne 0x403484
push 0x402cb4
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop edi
pop esi
leave
ret