Function at 0x401910
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.0043ddd0
mov eax, dword [0x471050]
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.004072a0
mov edx, edi
mov ecx, esi
call fcn.004073d0
test al, al
mov eax, esi
je 0x401c1e
push edi
push str.CommandLine:__s
push eax
call fcn.00408140
xor ecx, ecx
mov word [esp + 0x80], cx
mov esi, 7
xor ebx, ebx
add esp, 0xc
lea ecx, [esp + 0x70]
mov dword [esp + 0x88], esi
mov dword [esp + 0x84], ebx
call fcn.00403bf0
test al, al
je 0x4019b6
cmp dword [esp + 0x88], 8
mov eax, dword [esp + 0x74]
jae 0x4019a0
lea eax, [esp + 0x74]
push eax
lea edx, [esp + 0x1fc]
push str.OS:__s
push edx
call fcn.00408140
add esp, 0xc
mov edi, dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
cmp byte [esp + 0xe68], bl
je 0x4019d3
mov eax, dword [esp + 0x1074]
cmp eax, ebx
je 0x4019d3
push eax
call edi
lea eax, [esp + 0x440]
push eax
call fcn.00404cf0
movzx ecx, ax
add esp, 4
push ecx
lea edx, [esp + 0x12c]
push edx
call fcn.004013c0
push ebx
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 [0x4736b8], ebx
jne 0x401a42
push 0xc
call fcn.0042cf1f
add esp, 4
cmp eax, ebx
je 0x401a3b
lea ecx, [esp + 0x128]
lea edx, [esp + 0x14]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov dword [eax + 8], ebx
jmp 0x401a3d
xor eax, eax
mov dword [0x4736b8], eax
lea eax, [esp + 0x1c]
push eax
call fcn.004027b0
xor eax, eax
mov dword [esp + 0xc0], esi
xor ecx, ecx
mov dword [esp + 0xdc], esi
xor edx, edx
mov dword [esp + 0x6c], esi
mov word [esp + 0x58], ax
push 6
mov eax, str.LOCALE
lea esi, [esp + 0x58]
mov dword [esp + 0xc0], ebx
mov word [esp + 0xb0], cx
mov dword [esp + 0xdc], ebx
mov word [esp + 0xcc], dx
mov dword [esp + 0x6c], ebx
call fcn.00402de0
push 0xffffffffffffffff
push ebx
mov eax, esi
lea ecx, [esp + 0xb0]
call fcn.00402910
cmp dword [esp + 0x6c], 8
jb 0x401ac0
mov ecx, dword [esp + 0x58]
push ecx
call fcn.0042ce2b
add esp, 4
xor edx, edx
lea eax, [esp + 0x440]
mov word [esp + 0x58], dx
mov dword [esp + 0x6c], 7
mov dword [esp + 0x68], ebx
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x401ae0
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x444]
lea esi, [esp + 0x58]
call fcn.00402de0
push 0xffffffffffffffff
push ebx
mov eax, esi
lea ecx, [esp + 0xcc]
call fcn.00402910
cmp dword [esp + 0x6c], 8
jb 0x401b25
mov eax, dword [esp + 0x58]
push eax
call fcn.0042ce2b
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.004033f0
lea ecx, [esp + 0x1c]
mov esi, eax
call fcn.00403490
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.00408850
add esp, 4
test al, al
jne 0x401c3f
mov eax, dword [0x4736b8]
test eax, eax
je 0x401b88
push eax
call fcn.0042ce2b
add esp, 4
mov dword [0x4736b8], 0
cmp byte [esp + 0xe68], 0
je 0x401b9e
lea esi, [esp + 0x1f8]
call fcn.00408510
lea esi, [esp + 0xa8]
call fcn.00402300
lea ebx, [esp + 0x1c]
call fcn.00403370
mov edx, dword [esp + 0x30]
push edx
call fcn.0042ce2b
mov eax, dword [esp + 0x20]
add esp, 4
xor esi, esi
push eax
mov dword [esp + 0x34], esi
call fcn.0042ce2b
add esp, 4
lea ecx, [esp + 0x128]
mov dword [esp + 0x14], vtable.EAI3::IMessageBoxTitleIcon.0
call fcn.00401500
cmp dword [esp + 0x88], 8
jb 0x401bfe
mov ecx, dword [esp + 0x74]
push ecx
call fcn.0042ce2b
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.00407370
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2890]
xor ecx, esp
call fcn.0042c9e9
mov esp, ebp
pop ebp
ret 0x10
lea eax, [esp + 0x440]
push eax
call fcn.00404cf0
xor bl, bl
add esp, 4
mov word [esp + 0x12c], ax
mov dword [esp + 0x10], 0
cmp byte [esp + 0x401], bl
je 0x401fca
mov eax, 0x45c064
lea ecx, [esp + 0x8c]
call fcn.004026b0
lea ecx, [esp + 0x440]
push ecx
call fcn.00404cf0
add esp, 4
movzx eax, ax
lea edx, [esp + 0x8c]
push edx
push eax
mov ecx, 0x69
call fcn.00404d80
add esp, 8
test al, al
jne 0x401d84
lea eax, [esp + 0x1f8]
push str.Unable_to_retrieve_uninstall_confirmation_message_
push eax
call fcn.00408140
add esp, 8
cmp byte [esp + 0xe68], bl
je 0x401cdc
mov eax, dword [esp + 0x1074]
test eax, eax
je 0x401cdc
push eax
call edi
call fcn.00408800
call fcn.00403a20
cmp byte [esp + 0xe68], 0
je 0x401cfc
lea esi, [esp + 0x1f8]
call fcn.00408510
lea esi, [esp + 0x8c]
call fcn.00402720
lea esi, [esp + 0xa8]
call fcn.00402300
lea ebx, [esp + 0x1c]
call fcn.00403370
mov ecx, dword [esp + 0x30]
push ecx
call fcn.0042ce2b
mov edx, dword [esp + 0x20]
add esp, 4
push edx
mov dword [esp + 0x34], 0
call fcn.0042ce2b
add esp, 4
lea ecx, [esp + 0x128]
mov dword [esp + 0x14], vtable.EAI3::IMessageBoxTitleIcon.0
call fcn.00401500
lea esi, [esp + 0x70]
call fcn.00402720
lea eax, [esp + 0x1f8]
call fcn.00407370
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2890]
xor ecx, esp
call fcn.0042c9e9
mov esp, ebp
pop ebp
ret 0x10
push 3
push 0x45c180
mov ebx, 3
lea eax, [esp + 0x94]
call fcn.00402b70
push eax
lea eax, [esp + 0x94]
push eax
lea edx, [esp + 0xc6c]
call fcn.00402750
cmp dword [esp + 0xa4], 8
mov eax, dword [esp + 0x90]
jae 0x401dc9
lea eax, [esp + 0x90]
push 0x1024
lea ecx, [esp + 0xc64]
push ecx
push eax
call fcn.00403a40
add esp, 0xc
cmp eax, 6
je 0x401eae
lea edx, [esp + 0x1f8]
push str.User_cancelled_uninstall_
push edx
call fcn.00408140
add esp, 8
lea ecx, [esp + 0x1f8]
call fcn.004082b0
call fcn.00408800
call fcn.00403a20
cmp byte [esp + 0xe68], 0
je 0x401e29
lea esi, [esp + 0x1f8]
call fcn.00408510
lea esi, [esp + 0x8c]
call fcn.00402720
lea esi, [esp + 0xa8]
call fcn.00402300
lea ebx, [esp + 0x1c]
call fcn.00403370
mov eax, dword [esp + 0x30]
push eax
call fcn.0042ce2b
mov ecx, dword [esp + 0x20]
add esp, 4
push ecx
mov dword [esp + 0x34], 0
call fcn.0042ce2b
add esp, 4
lea ecx, [esp + 0x128]
mov dword [esp + 0x14], vtable.EAI3::IMessageBoxTitleIcon.0
call fcn.00401500
lea esi, [esp + 0x70]
call fcn.00402720
lea eax, [esp + 0x1f8]
call fcn.00407370
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2890]
xor ecx, esp
call fcn.0042c9e9
mov esp, ebp
pop ebp
ret 0x10
lea esi, [esp + 0x54]
call fcn.004087e0
mov eax, 0x45c064
lea ecx, [esp + 0x38]
call fcn.004026b0
mov ecx, esi
call fcn.00403890
lea esi, [esp + 0x38]
mov bl, al
call fcn.00402720
test bl, bl
je 0x401ee7
lea edx, [esp + 0x54]
push edx
mov edx, 0x45c1d8
jmp 0x401f17
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x444]
push ecx
call fcn.00404cf0
movzx edx, ax
add esp, 4
push edx
mov ecx, 0x68
call fcn.00404d80
add esp, 8
lea eax, [esp + 0x54]
push eax
mov edx, 0x45c180
call fcn.00402780
cmp eax, 0xffffffff
je 0x401f35
push 3
push eax
lea ecx, [esp + 0x5c]
push ecx
lea edx, [esp + 0xc6c]
call fcn.00402750
sub esp, 0x1c
lea edx, [esp + 0x70]
mov esi, esp
mov dword [esp + 0x2c], esp
push edx
call fcn.004026f0
sub esp, 0x1c
lea eax, [esp + 0xc98]
mov ecx, esp
mov dword [esp + 0x48], esp
call fcn.004026b0
lea esi, [esp + 0x118]
call fcn.004017d0
call fcn.00402350
push str.uninstall
call fcn.004093a0
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.00408140
add esp, 0xc
lea ecx, [esp + 0xe0]
test esi, esi
push ecx
sete bl
call fcn.004023a0
lea esi, [esp + 0xe0]
call fcn.004018b0
lea esi, [esp + 0x54]
call fcn.00402720
lea esi, [esp + 0x8c]
call fcn.00402720
call fcn.00408800
mov eax, dword [0x4736b8]
test eax, eax
je 0x401feb
push eax
call fcn.0042ce2b
add esp, 4
mov dword [0x4736b8], 0
cmp byte [esp + 0xe68], 0
je 0x402001
lea esi, [esp + 0x1f8]
call fcn.00408510
test bl, bl
je 0x40225a
lea esi, [esp + 0x1078]
call fcn.00404680
mov edx, esi
push edx
push str._sGDF.dll
lea eax, [esp + 0x1288]
push 0x104
push eax
call fcn.004012b0
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.004012b0
add esp, 0x10
lea ecx, [esp + 0x1280]
push ecx
call esi
cmp byte [esp + 0x403], 0
jne 0x4020a4
lea edx, [esp + 0x1078]
push edx
push str._sMaintenanceLog.txt
lea eax, [esp + 0x1288]
push 0x104
push eax
call fcn.004012b0
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.004012b0
lea eax, [esp + 0x1498]
lea esi, [esp + 0x1088]
mov ecx, eax
add esp, 0x10
mov edx, 0x104
sub esi, ecx
lea ecx, [ecx]
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x402100
movzx ecx, word [esi + eax]
test cx, cx
je 0x402100
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x4020e0
jmp 0x402104
test edx, edx
jne 0x402107
sub eax, 2
xor edx, edx
mov word [eax], dx
lea eax, [esp + 0x1078]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402116
sub eax, edx
sar eax, 1
je 0x40214c
lea edx, [esp + 0x1488]
xor ecx, ecx
push 0x5c
push edx
mov word [esp + eax*2 + 0x148e], cx
call fcn.0042cce4
add esp, 8
test eax, eax
je 0x40214c
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
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x402181
movzx ecx, word [esi + eax]
test cx, cx
je 0x402181
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x402161
jmp 0x402185
test edx, edx
jne 0x402188
sub eax, 2
xor edx, edx
mov word [eax], dx
lea eax, [esp + 0x1280]
push eax
lea esi, [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 0x40223c
lea eax, [esp + 0x1690]
mov esi, str.cmd.exe
mov ecx, eax
mov edx, 0x104
sub esi, ecx
lea ebx, [ebx]
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x402230
movzx ecx, word [esi + eax]
test cx, cx
je 0x402230
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x402210
jmp 0x402234
test edx, edx
jne 0x402237
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.00402300
lea ebx, [esp + 0x1c]
call fcn.00403370
mov edx, dword [esp + 0x30]
push edx
call fcn.0042ce2b
mov eax, dword [esp + 0x20]
add esp, 4
xor esi, esi
push eax
mov dword [esp + 0x34], esi
call fcn.0042ce2b
add esp, 4
lea ecx, [esp + 0x128]
mov dword [esp + 0x14], vtable.EAI3::IMessageBoxTitleIcon.0
call fcn.00401500
cmp dword [esp + 0x88], 8
jb 0x4022ba
mov ecx, dword [esp + 0x74]
push ecx
call fcn.0042ce2b
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.00407370
mov ecx, dword [esp + 0x289c]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0042c9e9
mov esp, ebp
pop ebp
ret 0x10