Function at 0x401000
Capabilities:
Delete file
Read .ini file

Disassembly:
sub esp, 0xb70
mov dl, byte [0x40ada0]
push edi
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [esp + 0x131]
mov byte [esp + 0x130], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x130]
mov byte [esp + 0x2c], dl
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [esp + 0x540]
rep stosd dword es:[edi], eax
mov ecx, pe_nt_image_headers32
lea edi, [esp + 0x2d]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x2c]
mov byte [esp + 0x338], dl
rep stosd dword es:[edi], eax
mov word [esp + 4], ax
mov ecx, pe_nt_image_headers32
lea edi, [esp + 0x844]
mov byte [esp + 6], al
rep stosd dword es:[edi], eax
mov ecx, pe_nt_image_headers32
lea edi, [esp + 0x644]
rep stosd dword es:[edi], eax
mov ecx, pe_nt_image_headers32
lea edi, [esp + 0x744]
rep stosd dword es:[edi], eax
mov ecx, pe_nt_image_headers32
lea edi, [esp + 0x339]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [esp + 0x235]
mov byte [esp + 0x234], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x338]
push 0x104
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [esp + 0x238]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x33c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x401419
push ebx
push ebp
lea edx, [esp + 0x74c]
push esi
lea eax, [esp + 0x650]
push edx
lea ecx, [esp + 0x854]
push eax
lea edx, [esp + 0x18]
push ecx
lea eax, [esp + 0x350]
push edx
push eax
call fcn.00402f58
mov edi, str..ini
or ecx, 0xffffffff
xor eax, eax
add esp, 0x14
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x650]
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x344]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x244]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [esp + 0x240]
push 0x5c
push edx
call fcn.00402ef8
mov byte [eax], 0
mov edi, 0x40a0d0
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x248]
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x248]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x658]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x248]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x40]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x40]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x958]
push ecx
push edx
call fcn.004029d0
mov ebp, eax
add esp, 0x10
cmp ebp, 0xffffffff
je 0x4013cd
lea eax, [esp + 0x14]
lea ecx, [esp + 0x38]
push eax
push ecx
call fcn.00402bd5
mov eax, dword [esp + 0x30]
add esp, 8
test eax, eax
je 0x4013a0
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x550]
push 0x104
push eax
push 0x40ada0
push 0
push str.Remove_Directory
call ebx
test eax, eax
je 0x401373
mov cl, byte [0x40ada0]
xor eax, eax
mov byte [esp + 0x448], cl
mov ecx, pe_nt_image_headers32
lea edi, [esp + 0x449]
lea edx, [esp + 0x38]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x448]
push edx
rep stosd dword es:[edi], eax
lea eax, [esp + 0x44c]
push 0x104
push eax
push 0x40ada0
push 0
push str.Remove_Directory
call ebx
mov al, byte [esp + 0x448]
lea esi, [esp + 0x448]
test al, al
je 0x40134f
lea ecx, [esp + 0x38]
lea edx, [esp + 0x54c]
push ecx
push 0x104
push edx
push 0x40ada0
push esi
push str.Remove_Directory
call ebx
test eax, eax
je 0x40134a
lea eax, [esp + 0xa68]
lea ecx, [esp + 0x54c]
push eax
push ecx
call fcn.004029d0
mov edi, eax
add esp, 8
cmp edi, 0xffffffff
je 0x40133a
lea edx, [esp + 0x54c]
push edx
call fcn.00401430
push edi
call fcn.00402a9a
add esp, 8
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea esi, [esi + ecx + 1]
cmp byte [esi], 0
jne 0x4012e2
call fcn.00401da0
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ebp
call fcn.00402a9a
add esp, 4
pop esi
pop ebp
pop ebx
pop edi
add esp, 0xb70
ret
mov edi, str.Keys_Missing_in_DirectoryRemovalUtility.INI_file
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x13c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 3
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x4013f8
mov edi, str.DirectoryRemovalUtility.INI_File_is_empty
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x13c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 4
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x4013f8
mov edi, str.DirectoryRemovalUtility.INI_File_not_found
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x13c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 2
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x140]
push ecx
call fcn.00401cd0
add esp, 8
call fcn.00401da0
push ebp
call fcn.00402a9a
add esp, 4
pop esi
pop ebp
pop ebx
pop edi
add esp, 0xb70
ret