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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x470
mov eax, dword [0x44d100]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
push ebx
xor ebx, ebx
lea eax, [ecx - 1]
mov dword [ebp - 0x41c], ebx
push edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x418], edi
cmp eax, 0xfff
ja 0x425447
push edx
push ecx
push dword [ebp + 8]
lea eax, [ebp - 0x41c]
push eax
call fcn.00424430
test eax, eax
je 0x425420
push 0x104
lea eax, [ebp - 0x20c]
push eax
push str.WINDIR
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x425420
cmp eax, 0x104
jae 0x425420
mov ecx, 0x104
lea eax, [ebp - 0x20c]
cmp word [eax], bx
je 0x425265
add eax, 2
sub ecx, 1
jne 0x425258
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 0x42541f
lea ecx, [ebp - 0x20c]
lea ecx, [ecx + esi*2]
sub edx, esi
je 0x4252b7
mov edi, str._sysnative_rundll32.exe
mov eax, 0x7ffffffe
sub edi, ecx
test eax, eax
je 0x4252b1
movzx esi, word [edi + ecx]
test si, si
je 0x4252b1
mov word [ecx], si
dec eax
add ecx, 2
sub edx, 1
jne 0x425298
mov edi, dword [ebp - 0x418]
test edx, edx
lea eax, [ecx - 2]
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
test edx, edx
je 0x42541f
mov esi, dword [ebp - 0x41c]
lea eax, [esi + 0xc]
push eax
push str.rundll32.exe___hs__1
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.00424740
add esp, 0x10
test eax, eax
js 0x42541f
lea eax, [ebp - 0x42c]
mov dword [ebp - 0x470], 0x44
push eax
lea eax, [ebp - 0x470]
xorps xmm0, xmm0
push eax
push 0
push 0
push 4
push 0
push 0
push 0
lea eax, [ebp - 0x414]
movlpd qword [ebp - 0x46c], xmm0
push eax
lea eax, [ebp - 0x20c]
movlpd qword [ebp - 0x464], xmm0
push eax
movups xmmword [ebp - 0x42c], xmm0
movlpd qword [ebp - 0x45c], xmm0
movlpd qword [ebp - 0x454], xmm0
movlpd qword [ebp - 0x44c], xmm0
movlpd qword [ebp - 0x444], xmm0
movlpd qword [ebp - 0x43c], xmm0
movlpd qword [ebp - 0x434], xmm0
call edi
test eax, eax
je 0x42541f
push dword [esi]
push esi
push 0x444160
push dword [ebp - 0x42c]
call fcn.00424e50
test eax, eax
jne 0x4253ba
push 0xffffffffffffffff
push dword [ebp - 0x42c]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push dword [ebp - 0x42c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x428]
call esi
jmp 0x42541f
push dword [ebp - 0x428]
mov esi, dword [sym.imp.KERNEL32.dll_ResumeThread]
call esi
push dword [ebp - 0x428]
call esi
push 0xffffffffffffffff
push dword [ebp - 0x42c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x418]
mov dword [ebp - 0x418], 0x1f4
push eax
push dword [ebp - 0x42c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x42c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x428]
call esi
cmp dword [ebp - 0x418], ebx
mov eax, 1
cmove ebx, eax
pop esi
mov eax, dword [ebp - 0x41c]
test eax, eax
je 0x42544f
push eax
call fcn.0042bebb
add esp, 4
mov eax, ebx
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042bd4c
mov esp, ebp
pop ebp
ret 0x10
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
xor ecx, ebp
pop ebx
call fcn.0042bd4c
mov esp, ebp
pop ebp
ret 0x10