Function at 0x4018e0
Capabilities:
Create process on windows
Delete file
Get comspec environment variable
Query environment variable
Self delete

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x2894
call fcn.0043d5c0
mov eax, dword [0x470050]
xor eax, esp
mov dword [esp + 0x2890], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
lea esi, [esp + 0x1f8]
call fcn.00407170
mov edx, edi
mov ecx, esi
call fcn.004072a0
test al, al
mov eax, esi
je 0x401bea
push edi
push str.CommandLine:__s
push eax
call fcn.00408010
xor ecx, ecx
mov word [esp + 0x80], cx
mov ebx, 7
xor edi, edi
add esp, 0xc
lea ecx, [esp + 0x70]
mov dword [esp + 0x88], ebx
mov dword [esp + 0x84], edi
call fcn.00403b70
test al, al
je 0x401986
cmp dword [esp + 0x88], 8
mov eax, dword [esp + 0x74]
jae 0x401970
lea eax, [esp + 0x74]
push eax
lea edx, [esp + 0x1fc]
push str.OS:__s
push edx
call fcn.00408010
add esp, 0xc
cmp byte [esp + 0xe68], 0
je 0x4019a2
mov eax, dword [esp + 0x1074]
cmp eax, edi
je 0x4019a2
push eax
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
lea eax, [esp + 0x440]
push eax
call fcn.00404c30
movzx ecx, ax
add esp, 4
push ecx
lea edx, [esp + 0x12c]
push edx
call fcn.00401390
push edi
mov dword [esp + 0x18], vtable.EAI3::MessageBoxTitleIcon.0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x6b
push eax
call dword [sym.imp.USER32.dll_LoadIconW]
mov dword [esp + 0x18], eax
cmp dword [0x4726b8], edi
jne 0x401a11
push 0xc
call fcn.0042c71f
add esp, 4
cmp eax, edi
je 0x401a0a
lea ecx, [esp + 0x128]
lea edx, [esp + 0x14]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov dword [eax + 8], edi
jmp 0x401a0c
xor eax, eax
mov dword [0x4726b8], eax
lea eax, [esp + 0x1c]
push eax
call fcn.00402780
xor eax, eax
xor ecx, ecx
xor edx, edx
mov word [esp + 0x58], ax
push 6
mov eax, str.LOCALE
lea esi, [esp + 0x58]
mov dword [esp + 0xc4], ebx
mov dword [esp + 0xc0], edi
mov word [esp + 0xb0], cx
mov dword [esp + 0xe0], ebx
mov dword [esp + 0xdc], edi
mov word [esp + 0xcc], dx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x6c], edi
call fcn.00402da0
push 0xffffffffffffffff
push edi
mov eax, esi
lea ecx, [esp + 0xb0]
call fcn.004028d0
cmp dword [esp + 0x6c], 8
jb 0x401a8f
mov ecx, dword [esp + 0x58]
push ecx
call fcn.0042c62b
add esp, 4
xor edx, edx
lea eax, [esp + 0x440]
mov word [esp + 0x58], dx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x68], edi
lea edx, [eax + 2]
jmp 0x401ab0
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x401ab0
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x444]
lea esi, [esp + 0x58]
call fcn.00402da0
push 0xffffffffffffffff
push edi
mov eax, esi
lea ecx, [esp + 0xcc]
call fcn.004028d0
cmp dword [esp + 0x6c], 8
jb 0x401af5
mov eax, dword [esp + 0x58]
push eax
call fcn.0042c62b
add esp, 4
mov eax, dword [esp + 0x30]
mov edx, dword [eax + 4]
lea ebx, [eax + 4]
lea ecx, [esp + 0xa8]
push ecx
push edx
push eax
call fcn.004033b0
lea ecx, [esp + 0x1c]
mov esi, eax
call fcn.00403450
mov dword [ebx], esi
mov eax, dword [esi + 4]
lea ecx, [esp + 0x1f8]
push ecx
lea ecx, [esp + 0x20]
mov dword [eax], esi
call fcn.00408760
add esp, 4
test al, al
jne 0x401c0b
mov eax, dword [0x4726b8]
cmp eax, edi
je 0x401b54
push eax
call fcn.0042c62b
add esp, 4
mov dword [0x4726b8], edi
cmp byte [esp + 0xe68], 0
je 0x401b6a
lea esi, [esp + 0x1f8]
call fcn.004083e0
lea esi, [esp + 0xa8]
call fcn.004022d0
lea ebx, [esp + 0x1c]
call fcn.00403330
mov edx, dword [esp + 0x30]
push edx
call fcn.0042c62b
mov eax, dword [esp + 0x20]
add esp, 4
xor esi, esi
push eax
mov dword [esp + 0x34], esi
call fcn.0042c62b
add esp, 4
lea ecx, [esp + 0x128]
mov dword [esp + 0x14], vtable.EAI3::IMessageBoxTitleIcon.0
call fcn.004014d0
cmp dword [esp + 0x88], 8
jb 0x401bca
mov ecx, dword [esp + 0x74]
push ecx
call fcn.0042c62b
add esp, 4
xor edx, edx
mov dword [esp + 0x88], 7
mov dword [esp + 0x84], esi
mov word [esp + 0x74], dx
lea eax, [esp + 0x1f8]
call fcn.00407240
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2890]
xor ecx, esp
call fcn.0042c1e9
mov esp, ebp
pop ebp
ret 0x10
lea eax, [esp + 0x440]
push eax
call fcn.00404c30
xor bl, bl
add esp, 4
mov word [esp + 0x12c], ax
mov dword [esp + 0x10], edi
cmp byte [esp + 0x401], bl
je 0x401f90
mov eax, 0x45b064
lea ecx, [esp + 0x8c]
call fcn.00402680
lea ecx, [esp + 0x440]
push ecx
call fcn.00404c30
add esp, 4
movzx eax, ax
lea edx, [esp + 0x8c]
push edx
push eax
mov ecx, 0x69
call fcn.00404cc0
add esp, 8
test al, al
jne 0x401d4c
lea eax, [esp + 0x1f8]
push str.Unable_to_retrieve_uninstall_confirmation_message_
push eax
call fcn.00408010
add esp, 8
cmp byte [esp + 0xe68], bl
je 0x401ca8
mov eax, dword [esp + 0x1074]
cmp eax, edi
je 0x401ca8
push eax
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
call fcn.00408710
call fcn.004039b0
cmp byte [esp + 0xe68], 0
je 0x401cc8
lea esi, [esp + 0x1f8]
call fcn.004083e0
lea esi, [esp + 0x8c]
call fcn.004026f0
lea esi, [esp + 0xa8]
call fcn.004022d0
lea ebx, [esp + 0x1c]
call fcn.00403330
mov ecx, dword [esp + 0x30]
push ecx
call fcn.0042c62b
mov edx, dword [esp + 0x20]
add esp, 4
push edx
mov dword [esp + 0x34], edi
call fcn.0042c62b
add esp, 4
lea ecx, [esp + 0x128]
mov dword [esp + 0x14], vtable.EAI3::IMessageBoxTitleIcon.0
call fcn.004014d0
lea esi, [esp + 0x70]
call fcn.004026f0
lea eax, [esp + 0x1f8]
call fcn.00407240
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2890]
xor ecx, esp
call fcn.0042c1e9
mov esp, ebp
pop ebp
ret 0x10
push 3
push 0x45b180
mov ebx, 3
lea eax, [esp + 0x94]
call fcn.00402b30
push eax
lea eax, [esp + 0x94]
push eax
lea edx, [esp + 0xc6c]
call fcn.00402720
cmp dword [esp + 0xa4], 8
mov eax, dword [esp + 0x90]
jae 0x401d91
lea eax, [esp + 0x90]
push 0x1024
lea ecx, [esp + 0xc64]
push ecx
push eax
call fcn.004039d0
add esp, 0xc
cmp eax, 6
je 0x401e72
lea edx, [esp + 0x1f8]
push str.User_cancelled_uninstall_
push edx
call fcn.00408010
add esp, 8
lea ecx, [esp + 0x1f8]
call fcn.00408180
call fcn.00408710
call fcn.004039b0
cmp byte [esp + 0xe68], 0
je 0x401df1
lea esi, [esp + 0x1f8]
call fcn.004083e0
lea esi, [esp + 0x8c]
call fcn.004026f0
lea esi, [esp + 0xa8]
call fcn.004022d0
lea ebx, [esp + 0x1c]
call fcn.00403330
mov eax, dword [esp + 0x30]
push eax
call fcn.0042c62b
mov ecx, dword [esp + 0x20]
add esp, 4
push ecx
mov dword [esp + 0x34], edi
call fcn.0042c62b
add esp, 4
lea ecx, [esp + 0x128]
mov dword [esp + 0x14], vtable.EAI3::IMessageBoxTitleIcon.0
call fcn.004014d0
lea esi, [esp + 0x70]
call fcn.004026f0
lea eax, [esp + 0x1f8]
call fcn.00407240
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2890]
xor ecx, esp
call fcn.0042c1e9
mov esp, ebp
pop ebp
ret 0x10
lea esi, [esp + 0x54]
call fcn.004086f0
mov eax, 0x45b064
lea ecx, [esp + 0x38]
call fcn.00402680
mov ecx, esi
call fcn.00403850
lea esi, [esp + 0x38]
mov bl, al
call fcn.004026f0
test bl, bl
je 0x401eab
lea edx, [esp + 0x54]
push edx
mov edx, 0x45b1d8
jmp 0x401edb
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x444]
push ecx
call fcn.00404c30
movzx edx, ax
add esp, 4
push edx
mov ecx, 0x68
call fcn.00404cc0
add esp, 8
lea eax, [esp + 0x54]
push eax
mov edx, 0x45b180
call fcn.00402750
cmp eax, 0xffffffff
je 0x401ef9
push 3
push eax
lea ecx, [esp + 0x5c]
push ecx
lea edx, [esp + 0xc6c]
call fcn.00402720
sub esp, 0x1c
lea edx, [esp + 0x70]
mov esi, esp
mov dword [esp + 0x2c], esp
push edx
call fcn.004026c0
sub esp, 0x1c
lea eax, [esp + 0xc98]
mov ecx, esp
mov dword [esp + 0x48], esp
call fcn.00402680
lea esi, [esp + 0x118]
call fcn.004017a0
call fcn.00402320
push str.uninstall
call fcn.004092b0
mov esi, eax
add esp, 4
push esi
lea eax, [esp + 0x1fc]
push str.Uninstall_finished_with_exit_code:__d
push eax
mov dword [esp + 0x1c], esi
call fcn.00408010
add esp, 0xc
lea ecx, [esp + 0xe0]
test esi, esi
push ecx
sete bl
call fcn.00402370
lea esi, [esp + 0xe0]
call fcn.00401880
lea esi, [esp + 0x54]
call fcn.004026f0
lea esi, [esp + 0x8c]
call fcn.004026f0
xor edi, edi
call fcn.00408710
mov eax, dword [0x4726b8]
cmp eax, edi
je 0x401fad
push eax
call fcn.0042c62b
add esp, 4
mov dword [0x4726b8], edi
cmp byte [esp + 0xe68], 0
je 0x401fc3
lea esi, [esp + 0x1f8]
call fcn.004083e0
test bl, bl
je 0x40222a
lea ecx, [esp + 0x1078]
call fcn.00404600
lea edx, [esp + 0x1078]
push edx
push str._sGDF.dll
lea eax, [esp + 0x1288]
push 0x104
push eax
call fcn.004012c0
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
add esp, 0x10
lea ecx, [esp + 0x1280]
push ecx
call esi
lea edx, [esp + 0x1078]
push edx
push str._sCleanup.dat
lea eax, [esp + 0x1288]
push 0x104
push eax
call fcn.004012c0
add esp, 0x10
lea ecx, [esp + 0x1280]
push ecx
call esi
cmp byte [esp + 0x403], 0
jne 0x40206b
lea edx, [esp + 0x1078]
push edx
push str._sMaintenanceLog.txt
lea eax, [esp + 0x1288]
push 0x104
push eax
call fcn.004012c0
add esp, 0x10
lea ecx, [esp + 0x1280]
push ecx
call esi
lea edx, [esp + 0x1078]
push edx
push str._sCleanup.exe
lea eax, [esp + 0x1288]
push 0x104
push eax
call fcn.004012c0
lea eax, [esp + 0x1498]
lea esi, [esp + 0x1088]
mov ecx, eax
add esp, 0x10
mov edx, 0x104
sub esi, ecx
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x4020c4
movzx ecx, word [esi + eax]
cmp cx, di
je 0x4020c4
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x4020a4
jmp 0x4020c8
cmp edx, edi
jne 0x4020cb
sub eax, 2
xor edx, edx
mov word [eax], dx
lea eax, [esp + 0x1078]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4020e0
sub eax, edx
sar eax, 1
je 0x402116
lea edx, [esp + 0x1488]
xor ecx, ecx
push 0x5c
push edx
mov word [esp + eax*2 + 0x148e], cx
call fcn.0042c4e4
add esp, 8
cmp eax, edi
je 0x402116
xor ecx, ecx
mov word [eax], cx
lea eax, [esp + 0x1898]
mov esi, str._c_timeout_2__nul__del__
mov ecx, eax
mov edx, 0x104
sub esi, ecx
jmp 0x402130
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x402150
movzx ecx, word [esi + eax]
cmp cx, di
je 0x402150
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x402130
jmp 0x402154
cmp edx, edi
jne 0x402157
sub eax, 2
xor edx, edx
mov word [eax], dx
lea eax, [esp + 0x1280]
push eax
lea edi, [esp + 0x189c]
call fcn.00401270
push str.___nul__rmdir__Q__
call fcn.00401270
lea ecx, [esp + 0x1078]
push ecx
call fcn.00401270
push str.___nul__timeout_1_nul__rmdir__Q__
call fcn.00401270
lea edx, [esp + 0x1488]
push edx
call fcn.00401270
push str.___nul
call fcn.00401270
push 0x208
lea eax, [esp + 0x1694]
push eax
push str.COMSPEC
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x40220c
lea eax, [esp + 0x1690]
mov esi, str.cmd.exe
mov ecx, eax
mov edx, 0x104
sub esi, ecx
lea esp, [esp]
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x402200
movzx ecx, word [esi + eax]
test cx, cx
je 0x402200
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x4021e0
jmp 0x402204
test edx, edx
jne 0x402207
sub eax, 2
xor edx, edx
mov word [eax], dx
push 0
push 0
lea eax, [esp + 0x18a0]
push eax
lea ecx, [esp + 0x169c]
push ecx
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea esi, [esp + 0xa8]
call fcn.004022d0
lea ebx, [esp + 0x1c]
call fcn.00403330
mov edx, dword [esp + 0x30]
push edx
call fcn.0042c62b
mov eax, dword [esp + 0x20]
add esp, 4
xor esi, esi
push eax
mov dword [esp + 0x34], esi
call fcn.0042c62b
add esp, 4
lea ecx, [esp + 0x128]
mov dword [esp + 0x14], vtable.EAI3::IMessageBoxTitleIcon.0
call fcn.004014d0
cmp dword [esp + 0x88], 8
jb 0x40228a
mov ecx, dword [esp + 0x74]
push ecx
call fcn.0042c62b
add esp, 4
xor edx, edx
lea eax, [esp + 0x1f8]
mov dword [esp + 0x88], 7
mov dword [esp + 0x84], esi
mov word [esp + 0x74], dx
call fcn.00407240
mov ecx, dword [esp + 0x289c]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0042c1e9
mov esp, ebp
pop ebp
ret 0x10