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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68c
mov eax, dword [0x4f0100]
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.0045e6f0
mov ebx, dword [ebp - 0x624]
test eax, eax
je 0x45ea64
mov eax, dword [ebp - 0x684]
test eax, eax
je 0x45ea64
cmp eax, 0x104
jae 0x45ea64
mov ecx, 0x104
lea eax, [ebp - 0x210]
nop dword [eax]
cmp word [eax], 0
je 0x45e8ee
add eax, 2
sub ecx, 1
jne 0x45e8e0
mov edx, 0x104
mov esi, ecx
mov eax, edx
sub eax, ecx
neg esi
sbb esi, esi
and esi, eax
test ecx, ecx
je 0x45ea64
lea ecx, [ebp - 0x210]
lea ecx, [ecx + esi*2]
sub edx, esi
je 0x45e939
mov edi, str._sysnative_rundll32.exe
mov eax, 0x7ffffffe
sub edi, ecx
test eax, eax
je 0x45e939
movzx esi, word [edi + ecx]
test si, si
je 0x45e939
mov word [ecx], si
dec eax
add ecx, 2
sub edx, 1
jne 0x45e920
test edx, edx
lea eax, [ecx - 2]
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
test edx, edx
je 0x45ea64
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 0x45ea64
test eax, eax
jle 0x45ea64
lea eax, [ebp - 0x418]
push eax
push str.rundll32.exe___s__1
lea eax, [ebp - 0x620]
push 0x104
push eax
call fcn.0045d720
add esp, 0x10
test eax, eax
js 0x45ea64
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 0x45ea64
push dword [ebx]
mov ecx, dword [ebp - 0x680]
mov edx, 0x4de89c
push ebx
call fcn.0045e460
test eax, eax
jne 0x45ea88
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 0x45ea73
push ebx
call fcn.0047b4f0
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047b4e2
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 0x45ea66