Function at 0x10039540
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100737b5
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x1007b958]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x20], edi
push 0x1008009c
push 5
call dword [sym.imp.MSDATL3.dll_public:_void___thiscall_CBaseObjZombie::constructor_enum_EBaseObjectType__long_int__]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], 0
mov dword [edi], fcn.1003c230
mov dword [edi + 0x14c], eax
mov dword [edi + 0x150], 0x10001008
mov dword [edi + 0x154], 0
mov dword [edi + 0x160], 0x10001424
mov dword [edi + 0x16c], 0x10001414
mov dword [edi + 0x178], 0x100013dc
mov dword [edi + 0x188], 0x10001074
mov dword [edi + 0x19c], 0x10001234
mov dword [edi + 0x1ac], 0
mov dword [edi + 0x1b0], 0
mov dword [edi + 0x1a0], 0
lea esi, [edi + 0x1b4]
mov byte [ebp - 4], 6
mov dword [ebp - 0x1c], esi
lea ecx, [esi + 0x14]
mov dword [esi], 0x10001280
call dword [sym.imp.MSDATL3.dll_public:_void___thiscall_CExtBuffer::constructor_void_]
lea ecx, [esi + 0x28]
mov byte [ebp - 4], 7
call dword [sym.imp.MSDATL3.dll_public:_void___thiscall_CBitArray::constructor_void_]
mov dword [esi + 4], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x38], 0
mov dword [edi + 0x1f0], 0x10001064
mov dword [edi + 0x1fc], 0x100019e4
mov dword [edi + 0x200], 0x100019dc
lea ebx, [edi + 0x204]
mov dword [ebp - 0x24], ebx
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 0xc
push eax
push 0x1000d604
push SysReAllocString
mov dword [ebx], 0x100019c4
mov esi, 0x2000
mov dword [ebp - 0x10], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x100396c7
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 4
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0x10014cbc
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100396b9
cmp dword [ebp - 0x18], 4
jne 0x100396b9
mov esi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x100396c7
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebx + 4], esi
cmp esi, 0x100
jae 0x100396d9
mov dword [ebx + 4], 0x100
mov dword [edi + 0x20c], 0x10001050
mov byte [ebp - 4], 0xe
mov esi, dword [0x10084b98]
cmp dword [0x1007d040], 0xffffffff
jne 0x100396ff
test byte [0x1008028c], 2
je 0x10039730
cmp dword [0x10080298], 0
je 0x1003970d
call fcn.1002cd30
mov eax, dword [0x1007d040]
cmp eax, 0xffffffff
je 0x10039730
push 0
push edi
push 6
push esi
mov esi, dword [0x1007803c]
mov ecx, esi
push eax
call dword [0x1008147c]
call esi
jmp 0x10039732
xor eax, eax
mov dword [edi + 0x1c], eax
mov eax, dword [ebp + 8]
mov dword [edi + 0x28], 0
test eax, eax
jne 0x10039745
mov eax, edi
mov dword [edi + 0x14], eax
mov eax, edi
mov dword [edi + 0xa8], 0
mov dword [edi + 0xc4], 0
mov dword [edi + 0xd0], 0
mov dword [edi + 0xcc], 0
mov dword [edi + 0xbc], 0
mov dword [edi + 0x78], 0
mov dword [edi + 0x74], 0
mov dword [edi + 0x7c], 0
mov dword [edi + 0x80], 0
mov dword [edi + 0x84], 0
mov dword [edi + 0x144], 0
mov dword [edi + 0x11c], 0
mov dword [edi + 0x120], 0
mov dword [edi + 0x124], 0
mov dword [edi + 0x128], 0
mov dword [edi + 0x12c], 0
mov dword [edi + 0x130], 0
mov dword [edi + 0x134], 0
mov dword [edi + 0x138], 0
mov dword [edi + 0x13c], 0
mov dword [edi + 0x140], 0
mov dword [edi + 0x148], 0
mov dword [edi + 0x118], 0
mov dword [edi + 0xb0], 0
mov dword [edi + 0xb8], 0
mov dword [edi + 0xb4], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
mov dword [edi + 0x40], 0
mov dword [edi + 0x44], 0
mov dword [edi + 0x48], 0
mov dword [edi + 0x4c], 0
mov dword [edi + 0x50], 0
mov dword [edi + 0x58], 0
mov dword [edi + 0x54], 0
mov dword [edi + 0x5c], 0
mov dword [edi + 0x68], 0
mov dword [edi + 0x6c], 0
mov dword [edi + 0x70], 0
mov dword [edi + 0x64], 0
mov dword [edi + 0x60], 0
mov dword [edi + 0x88], 0
mov dword [edi + 0x8c], 0
mov dword [edi + 0x90], 0
mov dword [edi + 0x98], 0
mov dword [edi + 0x9c], 0
mov dword [edi + 0xa0], 0
mov dword [edi + 0xa4], 0
mov dword [edi + 0xc0], 0
mov dword [edi + 0xc8], 0
mov dword [edi + 0xd4], 0
mov dword [edi + 0xd8], 0
mov dword [edi + 0xdc], 0
mov dword [edi + 0xe8], 0
mov dword [edi + 0xec], 0
mov dword [edi + 0xf0], 0
mov dword [edi + 0x10c], 0
mov dword [edi + 0x114], 0
mov dword [edi + 0x110], 0
mov dword [edi + 0x100], 0
mov dword [edi + 0xfc], 1
mov dword [edi + 0x104], 1
mov dword [edi + 0x108], 0
mov dword [edi + 0x94], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8