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

Disassembly:
sub esp, 0x48c
push ebx
push ebp
xor ebp, ebp
lea eax, [edx - 1]
mov dword [esp + 0xc], ebp
push esi
push edi
cmp eax, 0xfff
ja 0x100ff8e7
push dword [esp + 0x4a0]
push edx
mov edx, ecx
lea ecx, [esp + 0x1c]
call fcn.100ffb60
mov ebx, dword [esp + 0x14]
test eax, eax
je 0x100ff8cb
push 0x104
lea eax, [esp + 0x8c]
push eax
push 0x1026d450
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x100ff8cb
cmp eax, 0x104
jae 0x100ff8cb
mov ecx, 0x104
lea eax, [esp + 0x88]
cmp word [eax], bp
je 0x100ff721
add eax, 2
sub ecx, 1
jne 0x100ff714
mov edx, 0x104
mov esi, ecx
mov eax, edx
sub eax, ecx
neg esi
sbb esi, esi
and esi, eax
test ecx, ecx
je 0x100ff8cb
lea ecx, [esp + 0x88]
lea ecx, [ecx + esi*2]
sub edx, esi
je 0x100ff76d
mov edi, str._sysnative_rundll32.exe
mov eax, accept
sub edi, ecx
test eax, eax
je 0x100ff76d
movzx esi, word [edi + ecx]
test si, si
je 0x100ff76d
mov word [ecx], si
dec eax
add ecx, 2
sub edx, 1
jne 0x100ff754
test edx, edx
lea eax, [ecx - 2]
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
test edx, edx
je 0x100ff8cb
lea eax, [ebx + 0xc]
push eax
lea eax, [esp + 0x74]
push eax
call sym.WMCommon.dll_public:_static_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_WM::GMStringConvert::CharToGMString_char_const__
add esp, 8
cmp dword [eax + 0x14], 8
jb 0x100ff79b
mov eax, dword [eax]
push eax
push str.rundll32.exe___s__1
lea eax, [esp + 0x298]
push 0x104
push eax
call fcn.10056ae0
add esp, 0x10
lea ecx, [esp + 0x70]
mov esi, eax
call fcn.1001a5a0
test esi, esi
js 0x100ff8cb
lea eax, [esp + 0x18]
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 + 0x2b0]
movlpd qword [esp + 0x4c], xmm0
push eax
lea eax, [esp + 0xac]
movlpd qword [esp + 0x58], xmm0
push eax
movups xmmword [esp + 0x40], 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 dword [esp + 0x4cc]
test eax, eax
je 0x100ff8cb
push dword [ebx]
mov ecx, dword [esp + 0x1c]
mov edx, 0x10257318
push ebx
call fcn.100ffec0
test eax, eax
jne 0x100ff879
push 0xffffffffffffffff
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [esp + 0x1c]
call esi
jmp 0x100ff8cb
push dword [esp + 0x1c]
mov esi, dword [sym.imp.KERNEL32.dll_ResumeThread]
call esi
push dword [esp + 0x1c]
call esi
push 0xffffffffffffffff
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x1f4
push eax
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [esp + 0x1c]
call esi
cmp dword [esp + 0x14], ebp
jne 0x100ff8cb
mov ebp, 1
test ebx, ebx
je 0x100ff8ef
push ebx
call fcn.1006e708
add esp, 4
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48c
ret 8
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x48c
ret 8