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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x2f9c
call fcn.0043b1e0
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x2f98], eax
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
call fcn.00404c70
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x18]
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 1
push eax
call fcn.00403650
lea ecx, [esp + 0x18]
mov dword [eax], 0x82
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], 2
call fcn.00403650
lea ecx, [esp + 0x18]
mov dword [eax], 0x83
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], 3
call fcn.00403650
lea ecx, [esp + 0x18]
mov dword [eax], 0x85
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], 4
call fcn.00403650
lea ecx, [esp + 0x18]
mov dword [eax], 0x86
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], 5
call fcn.00403650
lea ecx, [esp + 0x18]
mov dword [eax], 0x87
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], 6
call fcn.00403650
lea ecx, [esp + 0x18]
mov dword [eax], 0x84
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], 7
call fcn.00403650
lea ecx, [esp + 0xc0]
mov dword [eax], 0x85
call fcn.00436c50
push ebx
lea ecx, [esp + 0xc4]
call fcn.004375a0
test al, al
je 0x402ecd
push ebx
lea eax, [esp + 0xc4]
push str.CommandLine:__s
push eax
call fcn.00438440
xor eax, eax
mov dword [esp + 0x50], 7
add esp, 0xc
mov word [esp + 0x30], ax
lea eax, [esp + 0x30]
mov dword [esp + 0x40], 0
push eax
call fcn.00434850
add esp, 4
test al, al
je 0x402bd8
cmp dword [esp + 0x44], 8
lea eax, [esp + 0x30]
cmovae eax, dword [esp + 0x30]
push eax
lea eax, [esp + 0xc4]
push str.OS:__s
push eax
call fcn.00438440
add esp, 0xc
lea ecx, [esp + 0xc0]
call fcn.00437480
lea eax, [esp + 0x310]
push eax
call fcn.00433640
add esp, 4
movzx eax, ax
lea ecx, [esp + 0x18]
push ecx
push eax
lea ecx, [esp + 0x30]
call fcn.00432e00
lea eax, [esp + 0x28]
push 0x7f
push eax
call fcn.00433050
add esp, 8
push 0
push 0
call fcn.00404c30
mov esi, eax
mov dword [esp + 0x74], 7
xor eax, eax
mov dword [esp + 0x10], esi
push 6
push str.LOCALE
lea ecx, [esp + 0xb0]
mov dword [esp + 0x78], 0
mov word [esp + 0x68], ax
mov dword [esp + 0x94], 7
mov dword [esp + 0x90], eax
mov word [esp + 0x80], ax
mov dword [esp + 0xc4], 7
mov dword [esp + 0xc0], eax
mov word [esp + 0xb0], ax
call fcn.00403dd0
cmp dword [esp + 0x74], 8
jb 0x402c95
push dword [esp + 0x60]
call fcn.0043986c
add esp, 4
xor eax, eax
mov dword [esp + 0x74], 7
mov word [esp + 0x60], ax
lea ecx, [esp + 0x60]
lea eax, [esp + 0xa8]
mov dword [esp + 0x70], 0
push eax
call fcn.00403800
cmp dword [esp + 0xbc], 8
jb 0x402cd6
push dword [esp + 0xa8]
call fcn.0043986c
add esp, 4
xor eax, eax
mov dword [esp + 0xa4], 7
mov dword [esp + 0xa0], 0
mov word [esp + 0x90], ax
cmp word [esp + 0x310], ax
jne 0x402d04
xor ecx, ecx
jmp 0x402d1f
lea ecx, [esp + 0x310]
lea edx, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402d10
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [esp + 0x314]
push eax
lea ecx, [esp + 0x98]
call fcn.00403dd0
cmp dword [esp + 0x8c], 8
jb 0x402d4a
push dword [esp + 0x78]
call fcn.0043986c
add esp, 4
xor eax, eax
mov dword [esp + 0x8c], 7
mov word [esp + 0x78], ax
lea ecx, [esp + 0x78]
lea eax, [esp + 0x90]
mov dword [esp + 0x88], 0
push eax
call fcn.00403800
cmp dword [esp + 0xa4], 8
jb 0x402d91
push dword [esp + 0x90]
call fcn.0043986c
add esp, 4
lea eax, [esp + 0x60]
push eax
push dword [esi + 4]
push esi
call fcn.00405140
mov dword [esi + 4], eax
mov dword [esp + 0x14], 1
mov ecx, dword [eax + 4]
mov dword [ecx], eax
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0xc4]
call fcn.004059f0
add esp, 4
test eax, eax
je 0x402f01
cmp eax, 4
jne 0x402e74
lea eax, [esp + 0x310]
push eax
call fcn.00433640
add esp, 4
movzx eax, ax
xor ecx, ecx
mov dword [esp + 0x5c], 7
mov word [esp + 0x48], cx
lea ecx, [esp + 0x48]
mov dword [esp + 0x58], 0
push ecx
push eax
push 0x6b
call fcn.00434e90
add esp, 0xc
lea ecx, [esp + 0x48]
push 3
push 0
push 0x4726d8
call fcn.00403b40
cmp eax, 0xffffffff
je 0x402e39
lea ecx, [esp + 0xd38]
push ecx
push 3
push eax
lea ecx, [esp + 0x54]
call fcn.004035f0
cmp dword [esp + 0x5c], 8
lea esi, [esp + 0x48]
push 0x1030
cmovae esi, dword [esp + 0x4c]
lea edx, [esp + 0x4c]
cmovae edx, dword [esp + 0x4c]
push esi
push edx
push 0
call fcn.00433140
add esp, 0x10
cmp dword [esp + 0x5c], 8
jb 0x402e74
push dword [esp + 0x48]
call fcn.0043986c
add esp, 4
call fcn.00433070
lea ecx, [esp + 0xc0]
call fcn.004389a0
lea ecx, [esp + 0x60]
call fcn.004033d0
lea ecx, [esp + 0x10]
call fcn.004044d0
push dword [esp + 0x10]
call fcn.0043986c
add esp, 4
cmp dword [esp + 0x44], 8
jb 0x402eb6
push dword [esp + 0x30]
call fcn.0043986c
add esp, 4
xor eax, eax
mov dword [esp + 0x44], 7
mov dword [esp + 0x40], 0
mov word [esp + 0x30], ax
lea ecx, [esp + 0xc0]
call fcn.00436ea0
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x18]
push eax
push dword [eax]
lea eax, [esp + 0x18]
push eax
call fcn.00404430
push dword [esp + 0x18]
call fcn.0043986c
mov eax, 1
jmp 0x4033ab
lea eax, [esp + 0x310]
push eax
call fcn.00433640
xor bl, bl
mov word [esp + 0x2c], ax
add esp, 4
xor bh, bh
xor edi, edi
cmp byte [esp + 0x2c9], bl
je 0x402f98
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0xc0]
call fcn.00402740
test al, al
jne 0x402f7b
call fcn.004055e0
call fcn.00433070
lea ecx, [esp + 0xc0]
call fcn.004389a0
lea ecx, [esp + 0x60]
call fcn.004033d0
lea ecx, [esp + 0x10]
call fcn.004044d0
push dword [esp + 0x10]
call fcn.0043986c
add esp, 4
lea ecx, [esp + 0x30]
call fcn.004035c0
jmp 0x402ecd
push 0x3e8
push 0x80
push 0x81
mov bh, 1
call fcn.004366d0
mov ecx, str.uninstall
jmp 0x402fcf
cmp byte [esp + 0x2cb], 0
je 0x402ff9
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0xc0]
call fcn.00402740
test al, al
je 0x402f39
push 0x3e8
push 0x80
push 0x81
call fcn.004366d0
mov ecx, str.pdlcuninstall
add esp, 0xc
call fcn.00406320
mov edi, eax
lea eax, [esp + 0xc0]
push edi
push str.Uninstall_finished_with_exit_code:__d
push eax
call fcn.00438440
add esp, 0xc
call fcn.00436bd0
test edi, edi
sete bl
call fcn.004055e0
call fcn.00433070
mov al, byte [esp + 0x2cf]
lea ecx, [esp + 0xc0]
mov byte [esp + 0x23], al
call fcn.004389a0
test bl, bl
je 0x403337
lea eax, [esp + 0x1778]
push 0x104
push eax
call fcn.00435020
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
add esp, 8
test bh, bh
je 0x403099
lea eax, [esp + 0x1778]
push eax
push str._sGDF.dll
lea eax, [esp + 0x1578]
push 0x104
push eax
call fcn.00402670
add esp, 0x10
lea eax, [esp + 0x1570]
push eax
call esi
lea eax, [esp + 0x1778]
push eax
push str._sGDF64.dll
lea eax, [esp + 0x1578]
push 0x104
push eax
call fcn.00402670
add esp, 0x10
lea eax, [esp + 0x1570]
push eax
call esi
lea eax, [esp + 0x1778]
push eax
push str._sCleanup.dat
lea eax, [esp + 0x1578]
push 0x104
push eax
call fcn.00402670
add esp, 0x10
lea eax, [esp + 0x1570]
push eax
call esi
cmp byte [esp + 0x23], 0
jne 0x4030f8
lea eax, [esp + 0x1778]
push eax
push str._sMaintenanceLog.txt
lea eax, [esp + 0x1578]
push 0x104
push eax
call fcn.00402670
add esp, 0x10
lea eax, [esp + 0x1570]
push eax
call esi
lea eax, [esp + 0x1778]
push eax
push str._sCleanup.exe
lea eax, [esp + 0x1578]
push 0x104
push eax
call fcn.00402670
lea ecx, [esp + 0x1990]
add esp, 0x10
lea esi, [esp + 0x1778]
mov eax, ecx
mov edx, 0x104
sub esi, eax
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x40314f
movzx eax, word [esi + ecx]
test ax, ax
je 0x40314f
mov word [ecx], ax
add ecx, 2
dec edx
jne 0x403131
jmp 0x403153
test edx, edx
jne 0x403156
sub ecx, 2
xor eax, eax
mov word [ecx], ax
lea ecx, [esp + 0x1778]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403165
sub ecx, edx
sar ecx, 1
je 0x4031ae
lea ecx, [ecx*2 - 2]
cmp ecx, 0x208
jae 0x4033c5
xor eax, eax
mov word [esp + ecx + 0x1980], ax
lea eax, [esp + 0x1980]
push 0x5c
push eax
call fcn.004396b4
add esp, 8
test eax, eax
je 0x4031ae
xor ecx, ecx
mov word [eax], cx
xor eax, eax
push 0x206
push eax
mov word [esp + 0x1b90], ax
lea eax, [esp + 0x1b92]
push eax
call fcn.0043a7a0
add esp, 0xc
lea esi, [esp + 0x1b88]
mov eax, esi
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
neg eax
lea ecx, [esp + 0x1f98]
mov edx, 0x800
sbb ebx, ebx
mov eax, ecx
and ebx, esi
mov esi, str._c_timeout_2__nul__del__
sub esi, eax
mov edi, edi
lea eax, [edx + 0x7ffff7fe]
test eax, eax
je 0x40321e
movzx eax, word [esi + ecx]
test ax, ax
je 0x40321e
mov word [ecx], ax
add ecx, 2
dec edx
jne 0x403200
jmp 0x403222
test edx, edx
jne 0x403225
sub ecx, 2
xor eax, eax
mov word [ecx], ax
lea eax, [esp + 0x1570]
push eax
push 0x800
lea eax, [esp + 0x1fa0]
push eax
call fcn.004025f0
push str._____NUL__rmdir__Q__
push 0x800
lea eax, [esp + 0x1fa0]
push eax
call fcn.004025f0
lea eax, [esp + 0x1778]
push eax
push 0x800
lea eax, [esp + 0x1fa0]
push eax
call fcn.004025f0
push str._____NUL__timeout_1____NUL__rmdir__Q__
push 0x800
lea eax, [esp + 0x1fa0]
push eax
call fcn.004025f0
lea eax, [esp + 0x1980]
push eax
push 0x800
lea eax, [esp + 0x1fa0]
push eax
call fcn.004025f0
push str._____NUL
push 0x800
lea eax, [esp + 0x1fa0]
push eax
call fcn.004025f0
push 0x208
lea eax, [esp + 0x1d94]
push eax
push str.COMSPEC
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x40331a
lea ecx, [esp + 0x1d90]
mov esi, str.cmd.exe
mov eax, ecx
mov edx, 0x104
sub esi, eax
mov edi, edi
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x40330e
movzx eax, word [esi + ecx]
test ax, ax
je 0x40330e
mov word [ecx], ax
add ecx, 2
dec edx
jne 0x4032f0
jmp 0x403312
test edx, edx
jne 0x403315
sub ecx, 2
xor eax, eax
mov word [ecx], ax
push 0
push ebx
lea eax, [esp + 0x1fa0]
push eax
lea eax, [esp + 0x1d9c]
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [esp + 0x60]
call fcn.004033d0
lea ecx, [esp + 0x10]
call fcn.004044d0
push dword [esp + 0x10]
call fcn.0043986c
add esp, 4
cmp dword [esp + 0x44], 8
jb 0x403368
push dword [esp + 0x30]
call fcn.0043986c
add esp, 4
xor eax, eax
mov dword [esp + 0x44], 7
lea ecx, [esp + 0xc0]
mov dword [esp + 0x40], 0
mov word [esp + 0x30], ax
call fcn.00436ea0
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x18]
push eax
push dword [eax]
lea eax, [esp + 0x18]
push eax
call fcn.00404430
push dword [esp + 0x18]
call fcn.0043986c
mov eax, edi
mov ecx, dword [esp + 0x2fa8]
add esp, 4
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00438f17
mov esp, ebp
pop ebp
ret 0x10
call fcn.004399a9
int3