Function at 0x1008254
Capabilities:
Create process on windows
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x260
mov eax, dword [0x101033c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
push dword [section..data]
mov ebx, ecx
call sub.DUI70.dll_StrToID
mov ecx, dword [0x1010404]
movzx eax, ax
push eax
call dword [sym.imp.DUI70.dll_public:_class_DirectUI::Element____thiscall_DirectUI::Element::FindDescendent_unsigned_short_int_]
xor edi, edi
mov dword [ebp - 0x214], eax
cmp eax, edi
jne 0x100829e
mov eax, 0x80004005
jmp 0x100847b
push esi
push dword [0x1010400]
lea ecx, [ebp - 0x224]
call dword [sym.imp.DUI70.dll_public:_void___thiscall_DirectUI::DUIFactory::constructor_struct_HWND____]
push edi
lea esi, [ebx + 4]
push esi
push edi
push dword [ebp - 0x214]
lea ecx, [ebp - 0x224]
push 0x10028e4
push 9
push dword [0x10103f8]
call dword [sym.imp.DUI70.dll_public:_long_int___thiscall_DirectUI::DUIFactory::LoadFromResource_struct_HINSTANCE_____unsigned_short_int_const___unsigned_short_int_const___class_DirectUI::Element___unsigned_long_int___class_DirectUI::Element____unsigned_short_int_const__]
cmp eax, edi
mov dword [ebp - 0x210], eax
jl 0x1008468
push dword [esi]
mov ecx, dword [ebp - 0x214]
call dword [sym.imp.DUI70.dll_public:_long_int___thiscall_DirectUI::Element::Add_class_DirectUI::Element__]
mov ecx, dword [esi]
push ebx
call dword [sym.imp.DUI70.dll_public:_long_int___thiscall_DirectUI::Element::AddListener_struct_DirectUI::IElementListener__]
push edi
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 0x414
push dword [0x1010400]
call edi
push 0
push 0
push 0x415
push dword [0x1010400]
call edi
push 0x1001d14
call sub.DUI70.dll_StrToID
mov ecx, dword [esi]
movzx eax, ax
push eax
call dword [sym.imp.DUI70.dll_public:_class_DirectUI::Element____thiscall_DirectUI::Element::FindDescendent_unsigned_short_int_]
mov dword [ebx + 8], eax
test eax, eax
je 0x1008370
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xa0]
mov esi, eax
test esi, esi
je 0x1008370
push 0xfffffffffffffff0
push esi
call dword [sym.imp.USER32.dll_GetWindowLongW]
or eax, 8
push eax
push 0xfffffffffffffff0
push esi
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 0x32
push 1
push 0x40a
push esi
call edi
xor eax, eax
xor esi, esi
cmp dword [0x10106d0], esi
sete al
push eax
push 0x14d3
call fcn.0100c644
push ebx
push esi
push esi
push esi
push esi
push 0x10081a6
call sub.SHLWAPI.dll_SHCreateWorkerWindowW
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0xc], eax
cmp eax, esi
jne 0x10083ba
call edi
cmp eax, esi
jle 0x10083b4
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x210], eax
push 0x10028c0
push dword [ebx + 0xc]
call dword [sym.imp.USER32.dll_SetWindowTextW]
call fcn.0100c50a
push 1
call fcn.0100ca41
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0x1002860
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 0x3c
pop esi
push esi
lea eax, [ebp - 0x260]
push 0
push eax
call sub.msvcrt.dll_memset
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x250], eax
add esp, 0xc
lea eax, [ebp - 0x260]
push eax
mov dword [ebp - 0x260], esi
mov dword [ebp - 0x25c], 0x40
mov dword [ebp - 0x254], 0x1002850
mov dword [ebp - 0x24c], 0x1010408
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x100844c
mov eax, dword [ebp - 0x228]
mov dword [ebx + 0x10], eax
jmp 0x1008468
call edi
push eax
push 0x10027e0
push 2
call fcn.0100c72e
add esp, 0xc
mov dword [ebp - 0x210], 0x80070005
lea ecx, [ebp - 0x224]
call dword [sym.imp.DUI70.dll_public:_void___thiscall_DirectUI::DUIFactory::destructor_void_]
mov eax, dword [ebp - 0x210]
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0100a9f1
leave
ret