Function at 0x1003d240
Capabilities:
Query or enumerate registry key
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x1004319f
mov eax, dword fs:[0]
push eax
sub esp, 0x898
mov eax, dword [0x10054020]
xor eax, esp
mov dword [esp + 0x894], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10054020]
xor eax, esp
push eax
lea eax, [esp + 0x8ac]
mov dword fs:[0], eax
mov eax, dword [esp + 0x8dc]
mov ebp, dword [esp + 0x8bc]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x8e0]
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], ecx
xor ebx, ebx
mov dword [esp + 0x8b4], ebx
mov edx, dword [esp + 0x8c4]
mov edi, 8
cmp dword [esp + 0x8d8], edi
jae 0x1003d2c1
lea edx, [esp + 0x8c4]
mov eax, edx
mov dword [esp + 0x3c], 7
mov dword [esp + 0x38], ebx
mov word [esp + 0x28], bx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x1003d2d7
sub eax, esi
sar eax, 1
push eax
push edx
lea esi, [esp + 0x2c]
call fcn.100025e0
cmp dword [esp + 0x3c], edi
mov eax, dword [esp + 0x28]
mov dword [esp + 0x18], ebx
jae 0x1003d303
lea eax, [esp + 0x28]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea edx, [esp + 0x18]
push edx
push 0x20019
push ebx
push eax
push ebp
call esi
cmp eax, ebx
jne 0x1003d32b
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
jmp 0x1003d32d
xor al, al
cmp al, bl
sete byte [esp + 0x17]
cmp dword [esp + 0x3c], edi
jb 0x1003d347
mov ecx, dword [esp + 0x28]
push ecx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
cmp byte [esp + 0x17], bl
je 0x1003d36d
cmp dword [esp + 0x8d8], edi
jb 0x1003d366
mov edx, dword [esp + 0x8c4]
push edx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov al, 1
jmp 0x1003d739
push 0x7fe
lea eax, [esp + 0xae]
push ebx
push eax
mov byte [esp + 0x23], 1
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], ebx
mov word [esp + 0xb4], bx
call sub.MSVCR80.dll_memset
mov eax, dword [esp + 0x8d0]
add esp, 0xc
cmp dword [esp + 0x8d8], edi
mov dword [esp + 0x48], 0x800
jae 0x1003d3b7
lea eax, [esp + 0x8c4]
lea ecx, [esp + 0x1c]
push ecx
push 0x20019
push ebx
push eax
push ebp
call esi
test eax, eax
je 0x1003d3ea
cmp dword [esp + 0x8d8], edi
jb 0x1003d3e3
mov edx, dword [esp + 0x8c4]
push edx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
xor al, al
jmp 0x1003d739
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x20]
push eax
lea ecx, [esp + 0x8c4]
push ecx
push edx
mov edx, dword [esp + 0x4c]
mov ecx, ebp
call fcn.1003c3f0
test al, al
jne 0x1003d40f
mov byte [esp + 0x17], bl
mov edx, dword [esp + 0x1c]
push ebx
push ebx
push ebx
push ebx
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0xbc]
push ecx
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
je 0x1003d70d
jmp 0x1003d440
lea eax, [esp + 0xa8]
mov dword [esp + 0x3c], 7
mov dword [esp + 0x38], ebx
mov word [esp + 0x28], bx
lea edx, [eax + 2]
jmp 0x1003d460
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x1003d460
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0xac]
push eax
lea esi, [esp + 0x2c]
call fcn.100025e0
mov ecx, esi
push ecx
lea edx, [esp + 0x8c4]
push edx
lea ecx, [esp + 0x94]
mov byte [esp + 0x8bc], 1
call fcn.10024290
add esp, 8
mov byte [esp + 0x8b4], 3
cmp dword [esp + 0x3c], edi
jb 0x1003d4be
mov eax, dword [esp + 0x28]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x4c]
push ecx
push 0x20019
push ebx
lea edx, [esp + 0xb4]
push edx
mov esi, 7
push eax
mov dword [esp + 0x50], esi
mov dword [esp + 0x4c], ebx
mov word [esp + 0x3c], bx
mov dword [esp + 0x60], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1003d6b4
mov eax, dword [esp + 0x4c]
cmp eax, ebx
je 0x1003d509
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x94]
lea ecx, [esp + 0x5c]
mov dword [esp + 0x74], esi
mov dword [esp + 0x70], ebx
mov word [esp + 0x60], bx
call fcn.100020a0
mov eax, dword [esp + 0x44]
mov byte [esp + 0x8b4], 4
call fcn.10002060
push eax
mov eax, dword [esp + 0x44]
call fcn.10002060
push eax
lea ecx, [esp + 0x5c]
push ecx
call fcn.10022760
mov edx, dword [esp + 0x2c]
add esp, 0xc
push edx
lea edi, [esp + 0x58]
mov ebx, ebp
call fcn.1003bde0
xor ebx, ebx
test al, al
mov edi, 7
je 0x1003d654
mov dword [esp + 0x88], edi
mov dword [esp + 0x84], ebx
mov word [esp + 0x74], bx
mov byte [esp + 0x8b4], 5
push ebx
push 0x10047a94
lea esi, [esp + 0x2c]
mov dword [esp + 0x44], edi
mov dword [esp + 0x40], ebx
mov word [esp + 0x30], bx
call fcn.100025e0
lea eax, [esp + 0x70]
push eax
lea ecx, [esp + 0x90]
push ecx
mov edx, esi
mov ecx, ebp
mov byte [esp + 0x8bc], 6
call fcn.1003be90
mov byte [esp + 0x8b4], 5
cmp dword [esp + 0x3c], 8
jb 0x1003d5e2
mov edx, dword [esp + 0x28]
push edx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
push ebx
push 0x10047a94
lea esi, [esp + 0x2c]
mov dword [esp + 0x44], edi
mov dword [esp + 0x40], ebx
mov word [esp + 0x30], bx
call fcn.100025e0
mov esi, dword [esp + 0x20]
cmp byte [esi], bl
je 0x1003d60c
mov byte [esi + 1], 1
jmp 0x1003d61f
lea eax, [esp + 0x24]
push eax
push ebp
lea ecx, [esp + 0x78]
lea eax, [esp + 0x5c]
call fcn.1003bf90
cmp dword [esp + 0x3c], 8
jb 0x1003d633
mov ecx, dword [esp + 0x28]
push ecx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov byte [esp + 0x8b4], 4
cmp dword [esp + 0x88], 8
jb 0x1003d65d
mov edx, dword [esp + 0x74]
push edx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
jmp 0x1003d65d
mov esi, dword [esp + 0x20]
mov byte [esp + 0x17], 0
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x40]
push eax
push ecx
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x74], esp
push 0xffffffffffffffff
mov dword [ecx + 0x18], edi
mov dword [ecx + 0x14], ebx
push ebx
lea eax, [esp + 0xb8]
mov word [ecx + 4], bx
call fcn.100020a0
push ebp
mov ecx, esi
call fcn.1003d240
cmp al, bl
jne 0x1003d699
mov byte [esp + 0x17], bl
cmp dword [esp + 0x6c], 8
jb 0x1003d6ad
mov edx, dword [esp + 0x58]
push edx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov edi, 8
xor ebx, ebx
add dword [esp + 0x18], 1
mov byte [esp + 0x8b4], bl
cmp dword [esp + 0xa4], edi
mov dword [esp + 0x48], 0x800
jb 0x1003d6e1
mov eax, dword [esp + 0x90]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [esp + 0x18]
push ebx
push ebx
push ebx
push ebx
lea ecx, [esp + 0x58]
push ecx
mov ecx, dword [esp + 0x30]
lea edx, [esp + 0xbc]
push edx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
jne 0x1003d440
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x1003d71c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 0x8d8], edi
jb 0x1003d735
mov edx, dword [esp + 0x8c4]
push edx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov al, byte [esp + 0x17]
mov ecx, dword [esp + 0x8ac]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x894]
xor ecx, esp
call fcn.1003ec9d
add esp, 0x8a4
ret 0x28