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

Disassembly:
sub esp, 0x470
mov eax, dword [0x44804c]
xor eax, esp
mov dword [esp + 0x46c], eax
mov ecx, dword [esp + 0x478]
mov edx, dword [esp + 0x47c]
push ebx
xor ebx, ebx
lea eax, [ecx - 1]
mov dword [esp + 4], ebx
push edi
mov edi, dword [esp + 0x488]
mov dword [esp + 0x1c], edi
cmp eax, 0xfff
ja 0x413c73
push ebp
push edx
push ecx
push dword [esp + 0x488]
lea eax, [esp + 0x18]
push eax
call fcn.00412cc0
mov ebp, dword [esp + 0xc]
test eax, eax
je 0x413c4a
push 0x104
lea eax, [esp + 0x6c]
push eax
push str.WINDIR
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x413c4a
cmp eax, 0x104
jae 0x413c4a
mov ecx, 0x104
lea eax, [esp + 0x68]
cmp word [eax], bx
je 0x413ac1
add eax, 2
sub ecx, 1
jne 0x413ab4
push esi
mov edx, 0x104
mov esi, ecx
mov eax, edx
sub eax, ecx
neg esi
sbb esi, esi
and esi, eax
test ecx, ecx
je 0x413c49
lea ecx, [esp + 0x6c]
lea ecx, [ecx + esi*2]
sub edx, esi
je 0x413b0f
mov edi, str._sysnative_rundll32.exe
mov eax, 0x7ffffffe
sub edi, ecx
test eax, eax
je 0x413b0b
movzx esi, word [edi + ecx]
test si, si
je 0x413b0b
mov word [ecx], si
dec eax
add ecx, 2
sub edx, 1
jne 0x413af2
mov edi, dword [esp + 0x24]
test edx, edx
lea eax, [ecx - 2]
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
test edx, edx
je 0x413c49
lea eax, [ebp + 0xc]
push eax
push str.rundll32.exe___hs__1
lea eax, [esp + 0x27c]
push 0x104
push eax
call fcn.00412fe0
add esp, 0x10
test eax, eax
js 0x413c49
lea eax, [esp + 0x14]
mov dword [esp + 0x28], 0x44
push eax
lea eax, [esp + 0x2c]
xorps xmm0, xmm0
push eax
push 0
push 0
push 4
push 0
push 0
push 0
lea eax, [esp + 0x294]
movlpd qword [esp + 0x4c], xmm0
push eax
lea eax, [esp + 0x90]
movlpd qword [esp + 0x58], xmm0
push eax
movups xmmword [esp + 0x3c], xmm0
movlpd qword [esp + 0x64], xmm0
movlpd qword [esp + 0x6c], xmm0
movlpd qword [esp + 0x74], xmm0
movlpd qword [esp + 0x7c], xmm0
movlpd qword [esp + 0x84], xmm0
movlpd qword [esp + 0x8c], xmm0
call edi
test eax, eax
je 0x413c49
push dword [ebp]
push ebp
push 0x4371e0
push dword [esp + 0x20]
call fcn.004136a0
test eax, eax
jne 0x413bf6
push 0xffffffffffffffff
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [esp + 0x18]
call esi
jmp 0x413c49
push dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_ResumeThread]
call esi
push dword [esp + 0x18]
call esi
push 0xffffffffffffffff
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x1f4
push eax
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [esp + 0x18]
call esi
cmp dword [esp + 0x10], ebx
mov eax, 1
cmove ebx, eax
pop esi
test ebp, ebp
je 0x413c57
push ebp
call fcn.00415539
add esp, 4
mov eax, ebx
pop ebp
mov ecx, dword [esp + 0x474]
pop edi
pop ebx
xor ecx, esp
call fcn.004154ca
add esp, 0x470
ret 0x10
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
jmp 0x413c5a