Function at 0x40b831
Capabilities:
Delete file

Disassembly:
push 0x58
mov eax, 0x41a8d6
call fcn.0040d60c
mov dword [ebp - 0x1c], ecx
and dword [ebp - 4], 0
push 0x424648
lea ecx, [ebp - 0x38]
call fcn.0040128c
mov esi, dword [ebp + 8]
push 0
lea ebx, [esi + 0x34]
mov edi, 0x41b3ac
push edi
mov ecx, ebx
mov byte [ebp - 4], 1
call fcn.004088d0
cmp eax, 0xffffffff
je 0x40b898
inc eax
push eax
lea eax, [ebp + 8]
push eax
mov ecx, ebx
call fcn.00408ee9
push eax
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 2
call fcn.00403108
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
mov byte [ebp - 4], 1
call fcn.00401189
cmp dword [esi + 0x54], 0
jne 0x40b8a4
cmp dword [esi + 0x58], 0
je 0x40b8bd
push ecx
lea eax, [ebp - 0x38]
mov dword [ebp + 8], esp
mov ecx, esp
push eax
call fcn.00401a72
call fcn.00407d93
test eax, eax
pop ecx
je 0x40b8d8
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 4], 0
je 0x40b8d8
mov eax, dword [esi + 0x1c]
cmp dword [eax - 0xc], 0
je 0x40b8d8
mov dword [ebp - 0x18], 1
jmp 0x40b8dc
and dword [ebp - 0x18], 0
push 0x41b870
lea ecx, [ebp - 0x14]
call fcn.0040144f
cmp dword [ebp - 0x18], 0
mov byte [ebp - 4], 3
je 0x40b951
lea eax, [esi + 0x18]
push eax
lea ecx, [ebp - 0x14]
call fcn.00403108
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], 0
jne 0x40b917
mov eax, dword [ebp - 0x1c]
add eax, 0x20
push eax
lea ecx, [ebp - 0x14]
call fcn.0040960a
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], 0
je 0x40b945
push edi
lea ecx, [ebp + 8]
call fcn.0040144f
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 4
call fcn.0040960a
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
mov byte [ebp - 4], 3
call fcn.00401189
lea eax, [esi + 0x1c]
push eax
lea ecx, [ebp - 0x14]
call fcn.0040960a
push str.HKEY_CURRENT_USER
lea ecx, [ebp - 0x34]
call fcn.0040144f
cmp dword [ebp - 0x18], 0
mov byte [ebp - 4], 5
je 0x40b9b5
lea ecx, [ebp + 0xb]
call fcn.0040778b
lea eax, [ebp - 0x34]
push eax
push ecx
lea eax, [ebp - 0x14]
mov dword [ebp - 0x50], esp
mov ecx, esp
push eax
mov byte [ebp - 4], 6
call fcn.00401a72
mov eax, dword [ebp - 0x1c]
push ecx
add eax, 0x1c
mov dword [ebp - 0x4c], esp
mov ecx, esp
push eax
mov byte [ebp - 4], 7
call fcn.00401a72
lea ecx, [ebp + 0xb]
mov byte [ebp - 4], 6
call fcn.004035e8
lea ecx, [ebp + 0xb]
mov byte [ebp - 4], 5
call fcn.004081dd
push str.runsettings.ini
lea ecx, [ebp - 0x30]
call fcn.0040144f
push edi
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 8
call fcn.0040144f
push eax
lea eax, [ebp + 8]
push ebx
push eax
mov byte [ebp - 4], 9
call fcn.0040304d
lea ecx, [ebp - 0x30]
push ecx
push eax
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 0xa
call fcn.0040304d
add esp, 0x18
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00401189
mov ecx, dword [ebp - 0x3c]
add ecx, 0xfffffff0
mov byte [ebp - 4], 0xd
call fcn.00401189
mov ebx, 0x41c798
push ebx
lea ecx, [ebp - 0x4c]
call fcn.0040144f
mov dword [ebp + 8], eax
push ebx
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0xe
call fcn.0040144f
push eax
lea eax, [ebp - 0x44]
push str._ShIni:
push eax
mov byte [ebp - 4], 0xf
call fcn.004092da
lea ecx, [ebp - 0x30]
push ecx
push eax
lea eax, [ebp - 0x40]
push eax
mov byte [ebp - 4], 0x10
call fcn.0040304d
push dword [ebp + 8]
mov byte [ebp - 4], 0x11
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0040304d
add esp, 0x24
mov ecx, dword [ebp - 0x40]
add ecx, 0xfffffff0
call fcn.00401189
mov ecx, dword [ebp - 0x44]
add ecx, 0xfffffff0
call fcn.00401189
mov ecx, dword [ebp - 0x48]
add ecx, 0xfffffff0
call fcn.00401189
mov ecx, dword [ebp - 0x4c]
add ecx, 0xfffffff0
mov byte [ebp - 4], 0x16
call fcn.00401189
push dword [ebp - 0x18]
mov ebx, dword [ebp - 0x1c]
push ecx
lea eax, [ebx + 0x1c]
mov dword [ebp + 8], esp
mov ecx, esp
push eax
mov dword [ebp - 0x50], eax
call fcn.00401a72
push ecx
lea eax, [ebp - 0x34]
mov dword [ebp - 0x3c], esp
mov ecx, esp
push eax
mov byte [ebp - 4], 0x17
call fcn.00401a72
push esi
push ecx
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x20], esp
mov ecx, esp
push eax
mov byte [ebp - 4], 0x18
call fcn.00401a72
mov ecx, ebx
mov byte [ebp - 4], 0x16
call fcn.0040ad9f
and dword [ebp - 0x24], 0
lea ecx, [ebp - 0xd]
call fcn.0040778b
cmp dword [ebp - 0x18], 0
mov byte [ebp - 4], 0x19
je 0x40bc4c
lea eax, [esi + 0x18]
push eax
lea ecx, [ebp + 8]
call fcn.00401a72
mov eax, dword [ebp + 8]
cmp dword [eax - 0xc], 0
mov byte [ebp - 4], 0x1a
jne 0x40bb1d
lea eax, [ebx + 0x20]
push eax
lea ecx, [ebp + 8]
call fcn.0040960a
lea eax, [ebp - 0x24]
push eax
push ecx
lea eax, [esi + 0x34]
mov dword [ebp - 0x3c], esp
mov ecx, esp
push eax
call fcn.00401a72
push ecx
lea eax, [ebp - 0x28]
mov dword [ebp - 0x54], esp
mov ecx, esp
push eax
mov byte [ebp - 4], 0x1b
call fcn.00401a72
push edi
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0x1c
call fcn.0040144f
push eax
lea eax, [esi + 0x34]
push eax
lea eax, [ebp - 0x20]
push eax
mov byte [ebp - 4], 0x1d
call fcn.0040304d
add esp, 8
mov edx, esp
lea ecx, [esi + 0x24]
mov dword [ebp - 0x58], esp
push ecx
push eax
push edx
mov byte [ebp - 4], 0x1e
call fcn.0040304d
add esp, 8
lea eax, [ebp + 8]
mov dword [ebp - 0x5c], esp
mov ecx, esp
push eax
mov byte [ebp - 4], 0x1f
call fcn.00401a72
push ecx
lea eax, [esi + 0x20]
mov dword [ebp - 0x60], esp
mov ecx, esp
push eax
mov byte [ebp - 4], 0x20
call fcn.00401a72
push ecx
mov dword [ebp - 0x64], esp
mov ecx, esp
lea edi, [esi + 0x1c]
push edi
mov byte [ebp - 4], 0x21
call fcn.00401a72
lea ecx, [ebp - 0xd]
mov byte [ebp - 4], 0x23
call fcn.0040778e
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
mov dword [ebp - 0x3c], eax
call fcn.00401189
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
mov byte [ebp - 4], 0x1a
call fcn.00401189
xor eax, eax
cmp dword [ebp - 0x3c], eax
sete al
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x40bd2a
push 0x424648
lea ecx, [ebp - 0x20]
call fcn.0040128c
push dword [ebp - 0x3c]
lea eax, [ebp - 0x20]
push dword [esi + 0x18]
mov byte [ebp - 4], 0x24
push dword [edi]
push str.Failed_to_execute_process_under_user__s__domain__s._Error_code__d
push eax
call fcn.004093df
add esp, 0x14
push dword [esi + 0x44]
lea eax, [ebp - 0x20]
push ecx
mov dword [ebp - 0x64], esp
mov ecx, esp
push eax
call fcn.00401a72
mov ecx, ebx
call fcn.00408d55
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
mov dword [eax], 0xfffffff6
call fcn.00401189
jmp 0x40bd2a
lea eax, [ebp - 0x24]
push eax
push ecx
lea eax, [esi + 0x34]
mov dword [ebp - 0x64], esp
mov ecx, esp
push eax
call fcn.00401a72
push ecx
lea eax, [ebp - 0x28]
mov dword [ebp - 0x60], esp
mov ecx, esp
push eax
mov byte [ebp - 4], 0x25
call fcn.00401a72
push edi
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0x26
call fcn.0040144f
push eax
lea eax, [esi + 0x34]
push eax
lea eax, [ebp + 8]
push eax
mov byte [ebp - 4], 0x27
call fcn.0040304d
add esp, 8
mov edx, esp
lea ecx, [esi + 0x24]
mov dword [ebp - 0x5c], esp
push ecx
push eax
push edx
mov byte [ebp - 4], 0x28
call fcn.0040304d
add esp, 0xc
lea ecx, [ebp - 0xd]
mov byte [ebp - 4], 0x2a
call fcn.00407a53
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
mov edi, eax
call fcn.00401189
mov ecx, dword [ebp - 0x3c]
add ecx, 0xfffffff0
mov byte [ebp - 4], 0x19
call fcn.00401189
xor eax, eax
test edi, edi
sete al
test eax, eax
mov dword [ebp - 0x1c], eax
jne 0x40bd84
push 0x424648
lea ecx, [ebp + 8]
call fcn.0040128c
push edi
lea eax, [ebp + 8]
push str.Failed_to_execute_process_in_the_context_of_the_current_user._Error_code__d
push eax
mov byte [ebp - 4], 0x2b
call fcn.004093df
add esp, 0xc
push dword [esi + 0x44]
lea eax, [ebp + 8]
push ecx
mov dword [ebp - 0x64], esp
mov ecx, esp
push eax
call fcn.00401a72
mov ecx, ebx
call fcn.00408d55
mov eax, dword [ebp + 0x10]
mov dword [eax], 0xfffffff6
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
mov byte [ebp - 4], 0x19
call fcn.00401189
cmp dword [ebp - 0x18], 0
je 0x40bd84
lea ecx, [ebp + 0xb]
call fcn.0040778b
push ecx
lea eax, [ebp - 0x14]
mov dword [ebp - 0x64], esp
mov ecx, esp
push eax
mov byte [ebp - 4], 0x2c
call fcn.00401a72
push ecx
mov dword [ebp - 0x60], esp
mov ecx, esp
push dword [ebp - 0x50]
mov byte [ebp - 4], 0x2d
call fcn.00401a72
lea ecx, [ebp + 0xb]
mov byte [ebp - 4], 0x2c
call fcn.00403768
lea ecx, [ebp + 0xb]
mov byte [ebp - 4], 0x19
call fcn.004081dd
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [ebp - 0x1c], 0
je 0x40bd9b
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
lea ecx, [ebp - 0xd]
mov byte [ebp - 4], 0x16
call fcn.004081dd
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffff0
call fcn.00401189
mov ecx, dword [ebp - 0x2c]
add ecx, 0xfffffff0
call fcn.00401189
mov ecx, dword [ebp - 0x30]
add ecx, 0xfffffff0
call fcn.00401189
mov ecx, dword [ebp - 0x34]
add ecx, 0xfffffff0
call fcn.00401189
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00401189
mov ecx, dword [ebp - 0x38]
add ecx, 0xfffffff0
call fcn.00401189
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.00401189
mov eax, dword [ebp - 0x1c]
call fcn.0040d6ab
ret 0xc