Function at 0x10004440
Capabilities:
Query environment variable
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x268
push ebx
push ebp
mov ebp, dword [esp + 0x274]
mov ebx, 0x10000
test ebp, ebp
je 0x10004789
push esi
push edi
push 0x200
lea eax, [esp + 0x7c]
mov dword [ebp], 0
push eax
push str.MANTLE_ICD_AGENT
call dword [sym.imp.kernel32.dll_GetEnvironmentVariableA]
mov esi, eax
test esi, esi
je 0x100044c4
lea eax, [esi + 1]
push 0x10018170
push eax
call fcn.1000cfb2
mov edi, dword [esp + 0x288]
add esp, 8
mov dword [edi], eax
test eax, eax
je 0x100046ae
push esi
lea eax, [esp + 0x7c]
mov dword [ebp], 1
push eax
push dword [edi]
call fcn.10005eb0
mov eax, dword [edi]
add esp, 0xc
mov byte [esi + eax], 0
jmp 0x100046c5
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0
push eax
push 0x20019
push 0
push str.SOFTWAREMantle1.0
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x14], 0
test eax, eax
jne 0x100046be
push eax
push eax
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x2c]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push dword [esp + 0x3c]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x100046be
mov eax, dword [esp + 0x14]
inc eax
push 0x10018170
push eax
call fcn.1000cfb2
test eax, eax
mov dword [esp + 0x20], eax
push 0x40
mov ecx, 0x11003
lea eax, [esp + 0x44]
cmove ebx, ecx
push 0
push eax
mov dword [esp + 0x48], ebx
call fcn.100058b0
mov edi, dword [esp + 0x294]
xor esi, esi
add esp, 0x14
mov dword [esp + 0x28], esi
cmp ebx, 0x10000
jne 0x10004670
nop word [eax + eax]
cmp esi, dword [esp + 0x1c]
jae 0x10004670
cmp dword [ebp], 0x10
jae 0x10004670
mov eax, dword [esp + 0x14]
inc eax
mov dword [esp + 0x20], 0
mov dword [esp + 0x30], eax
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x28]
mov dword [esp + 0x28], 0
push eax
lea eax, [esp + 0x28]
mov dword [esp + 0x34], 4
push eax
push 0
lea eax, [esp + 0x40]
push eax
push dword [esp + 0x2c]
push esi
push dword [esp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x1000465f
cmp dword [esp + 0x20], 4
jne 0x1000465f
mov edx, dword [ebp]
mov ebx, dword [esp + 0x24]
test edx, edx
je 0x10004632
mov eax, dword [esp + 0x280]
lea esi, [esp + 0x38]
lea edi, [esp + 0x3c]
sub esi, eax
sub edi, eax
lea ecx, [eax - 4]
lea ecx, [ecx + edx*4]
nop dword [eax]
mov eax, dword [esi + ecx]
cmp eax, ebx
jbe 0x10004627
mov dword [edi + ecx], eax
mov eax, dword [ecx]
mov dword [ecx + 4], eax
sub ecx, 4
sub edx, 1
jne 0x10004610
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0x280]
mov eax, dword [esp + 0x18]
mov dword [edi + edx*4], eax
mov eax, dword [esp + 0x14]
inc dword [ebp]
inc eax
push 0x10018170
push eax
mov dword [esp + edx*4 + 0x40], ebx
call fcn.1000cfb2
add esp, 8
mov dword [esp + 0x18], eax
test eax, eax
je 0x1000469b
mov ebx, dword [esp + 0x34]
inc esi
mov dword [esp + 0x28], esi
cmp ebx, 0x10000
je 0x10004580
push dword [esp + 0x18]
call fcn.10004b75
add esp, 4
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp ebx, 0x10000
je 0x100046c5
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x268
ret
push eax
call fcn.10004b75
add esp, 4
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
mov eax, 0x11003
pop ebx
add esp, 0x268
ret
mov edi, dword [esp + 0x280]
cmp dword [ebp], 0
jne 0x1000468e
push str.gdi32.dll
call dword [sym.imp.kernel32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x100046ec
push esi
call fcn.100047b0
add esp, 4
push esi
call dword [sym.imp.kernel32.dll_FreeLibrary]
push 0x10018170
push 0x10
call fcn.1000cfb2
mov ecx, 0x10020ab0
mov dword [edi], eax
add esp, 8
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10004705
sub ecx, edx
push 0x10018170
lea eax, [ecx + 0x10]
push eax
call fcn.1000cfb2
mov esi, dword [esp + 0x28c]
add esp, 8
mov dword [esi], eax
cmp dword [edi], 0
je 0x100046ae
test eax, eax
je 0x100046ae
mov dword [ebp], 1
mov ecx, 0x10020ab0
mov eax, dword [edi]
movups xmm0, xmmword [0x1001803c]
movups xmmword [eax], xmm0
mov edx, dword [esi]
nop
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx], al
lea edx, [edx + 1]
test al, al
jne 0x10004750
mov ecx, 0x10020ab0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10004766
mov eax, dword [esi]
sub ecx, edx
movups xmm0, xmmword [0x1001803c]
pop edi
pop esi
movups xmmword [eax + ecx], xmm0
pop ebp
mov eax, ebx
pop ebx
add esp, 0x268
ret
pop ebp
mov eax, 0x11007
pop ebx
add esp, 0x268
ret