Function at 0x452780
Capabilities:
Query environment variable
Resume thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68c
mov eax, dword [0x4e20c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x688], eax
mov edi, ecx
push 0x104
lea eax, [ebp - 0x210]
mov dword [ebp - 0x624], 0
push eax
push str.WINDIR
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push esi
push ecx
mov edx, edi
mov dword [ebp - 0x684], eax
lea ecx, [ebp - 0x624]
call fcn.00452620
mov ebx, dword [ebp - 0x624]
test eax, eax
je 0x452994
mov eax, dword [ebp - 0x684]
test eax, eax
je 0x452994
cmp eax, 0x104
jae 0x452994
mov ecx, 0x104
lea eax, [ebp - 0x210]
nop dword [eax]
cmp word [eax], 0
je 0x45281e
add eax, 2
sub ecx, 1
jne 0x452810
mov edx, 0x104
mov esi, ecx
mov eax, edx
sub eax, ecx
neg esi
sbb esi, esi
and esi, eax
test ecx, ecx
je 0x452994
lea ecx, [ebp - 0x210]
lea ecx, [ecx + esi*2]
sub edx, esi
je 0x452869
mov edi, str._sysnative_rundll32.exe
mov eax, 0x7ffffffe
sub edi, ecx
test eax, eax
je 0x452869
movzx esi, word [edi + ecx]
test si, si
je 0x452869
mov word [ecx], si
dec eax
add ecx, 2
sub edx, 1
jne 0x452850
test edx, edx
lea eax, [ecx - 2]
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
test edx, edx
je 0x452994
push 0x104
lea eax, [ebp - 0x418]
push eax
push 0xffffffffffffffff
lea eax, [ebx + 0xc]
push eax
push ecx
push ecx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, 0x104
jae 0x452994
test eax, eax
jle 0x452994
lea eax, [ebp - 0x418]
push eax
push str.rundll32.exe___s__1
lea eax, [ebp - 0x620]
push 0x104
push eax
call fcn.00451650
add esp, 0x10
test eax, eax
js 0x452994
lea eax, [ebp - 0x680]
mov dword [ebp - 0x670], 0x44
push eax
lea eax, [ebp - 0x670]
xorps xmm0, xmm0
push eax
push 0
push 0
push 4
push 0
push 0
push 0
lea eax, [ebp - 0x620]
movlpd qword [ebp - 0x66c], xmm0
push eax
lea eax, [ebp - 0x210]
movlpd qword [ebp - 0x664], xmm0
push eax
movups xmmword [ebp - 0x680], xmm0
movlpd qword [ebp - 0x65c], xmm0
movlpd qword [ebp - 0x654], xmm0
movlpd qword [ebp - 0x64c], xmm0
movlpd qword [ebp - 0x644], xmm0
movlpd qword [ebp - 0x63c], xmm0
movlpd qword [ebp - 0x634], xmm0
call dword [ebp - 0x688]
test eax, eax
je 0x452994
push dword [ebx]
mov ecx, dword [ebp - 0x680]
mov edx, 0x4d05a0
push ebx
call fcn.00452390
test eax, eax
jne 0x4529b8
push 0xffffffffffffffff
push dword [ebp - 0x680]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push dword [ebp - 0x680]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x67c]
call esi
xor esi, esi
test ebx, ebx
je 0x4529a3
push ebx
call fcn.0046ea83
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046ea75
mov esp, ebp
pop ebp
ret 8
push dword [ebp - 0x67c]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0xffffffffffffffff
push dword [ebp - 0x680]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x624]
mov dword [ebp - 0x624], 0x1f4
push eax
push dword [ebp - 0x680]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x680]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x67c]
call esi
xor esi, esi
mov eax, 1
cmp dword [ebp - 0x624], esi
cmove esi, eax
jmp 0x452996