Function at 0x1031fc0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1c50
call fcn.01032f80
mov eax, dword [0x1039004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 0x10]
lea edx, [ebp - 0x1c44]
push edx
mov edx, dword [edi]
mov esi, ecx
xor ecx, ecx
or edx, 1
push edx
push ecx
lea eax, [edi + 4]
push eax
mov eax, dword [esi + 0x408]
push eax
mov dword [ebp - 0x1c38], esi
mov dword [ebp - 0x1c3c], ebx
mov dword [ebp - 0x1c48], edi
mov dword [ebp - 0x1c44], ecx
mov dword [ebp - 0x1c34], ecx
mov dword [ebp - 0x1c40], ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1032040
mov ecx, dword [ebp + 8]
push 1
push ebx
push ecx
mov ecx, esi
call fcn.01031250
jmp 0x10326f9
lea edx, [ebp - 0x1c50]
push edx
mov edx, dword [ebx]
lea ecx, [ebp - 0x1c34]
push ecx
push 0
or edx, 0x20007
push edx
push 0
push 0
push 0
lea eax, [ebx + 4]
push eax
mov eax, dword [esi + 0x408]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
xor ebx, ebx
cmp esi, ebx
jne 0x10326fb
push edi
mov edi, dword [ebp + 8]
push edi
lea ecx, [ebp - 0xc24]
call fcn.0102bd40
shl edi, 6
cmp dword [edi + 0x1018134], ebx
mov dword [ebp - 0x1c30], ebx
jbe 0x1032128
mov edx, dword [edi + 0x1018130]
lea ecx, [ebp - 0x1c24]
push ecx
add edx, ebx
push edx
lea ecx, [ebp - 0xc24]
mov dword [ebp - 0x1c28], 4
call fcn.0102bf70
test eax, eax
je 0x10320dd
mov eax, dword [edi + 0x1018130]
mov ecx, dword [ebx + eax + 0x204]
mov dword [ebp - 0x1c24], ecx
mov edx, dword [ebp + 0x14]
mov ecx, dword [edi + 0x1018130]
push edx
mov edx, dword [ebp - 0x1c34]
lea eax, [ebp - 0x1c28]
push eax
add ecx, ebx
push ecx
push edx
call fcn.0102c900
mov esi, eax
test esi, esi
jne 0x10326fb
mov eax, dword [ebp - 0x1c30]
add eax, 1
add ebx, 0x1208
cmp eax, dword [edi + 0x1018134]
mov dword [ebp - 0x1c30], eax
jb 0x10320a1
xor ebx, ebx
cmp dword [edi + 0x101813c], ebx
mov dword [ebp - 0x1c2c], ebx
jbe 0x103229b
lea esp, [esp]
mov ecx, dword [edi + 0x1018138]
lea eax, [ebp - 0x1c28]
add ecx, ebx
push eax
push ecx
lea ecx, [ebp - 0xc24]
call fcn.0102c120
test eax, eax
jne 0x1032178
mov edx, dword [edi + 0x1018138]
mov eax, dword [ebx + edx + 0x200]
cmp eax, dword [ebp - 0x1c28]
je 0x10321fc
mov ecx, dword [edi + 0x1018138]
lea eax, [ebx + ecx]
mov ecx, dword [eax + 0x200]
cmp ecx, 4
mov dword [ebp - 0x1c28], ecx
jne 0x10321a0
mov edx, dword [eax + 0x204]
mov dword [ebp - 0x1c24], edx
jmp 0x10321fc
lea ecx, [ebp - 0x1c30]
push ecx
mov ecx, dword [ebp - 0x1c38]
lea edx, [ebp - 0x1c28]
push edx
push eax
mov eax, dword [ebp + 8]
push eax
mov dword [ebp - 0x1c30], 0
call fcn.0102c970
mov esi, eax
test esi, esi
jne 0x10326fb
cmp dword [ebp - 0x1c30], eax
jne 0x10321fc
mov ecx, dword [edi + 0x1018138]
push 0x1000
lea edx, [ebx + ecx + 0x208]
push edx
lea eax, [ebp - 0x1c24]
push eax
call sub.MSVCR80.dll_memcpy
add esp, 0xc
mov esi, dword [edi + 0x1018138]
mov eax, dword [ebp - 0x1c34]
add esi, ebx
cmp dword [ebp + 0x14], 0
mov dword [ebp - 0x1c4c], eax
jne 0x103222a
push 0
push 0
push 0
push 0
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x1032270
lea ecx, [ebp - 0x1c30]
push ecx
lea edx, [ebp - 0x1c28]
push edx
mov dword [ebp - 0x1c30], 0
call fcn.0102c850
test eax, eax
jne 0x1032270
mov eax, dword [ebp - 0x1c30]
mov edx, dword [ebp - 0x1c28]
push eax
mov eax, dword [ebp - 0x1c4c]
lea ecx, [ebp - 0x1c24]
push ecx
push edx
push 0
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
mov esi, eax
jne 0x10326fb
mov eax, dword [ebp - 0x1c2c]
add eax, 1
add ebx, 0x1208
cmp eax, dword [edi + 0x101813c]
mov dword [ebp - 0x1c2c], eax
jb 0x1032140
lea ecx, [ebp - 0x1c28]
push ecx
push 0x1018704
lea ecx, [ebp - 0xc24]
call fcn.0102c120
test eax, eax
jne 0x10322bf
cmp dword [ebp - 0x1c28], 1
je 0x10322e6
mov edx, dword [edi + 0x101814c]
mov eax, dword [edi + 0x1018148]
push edx
push eax
lea ecx, [ebp - 0x1c24]
push ecx
mov dword [ebp - 0x1c28], 1
call sub.MSVCR80.dll_memcpy
add esp, 0xc
mov ebx, dword [ebp + 0x14]
test ebx, ebx
mov eax, dword [ebp - 0x1c34]
mov esi, eax
jne 0x1032309
push ebx
push ebx
push ebx
push ebx
push 0x1018704
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x103234d
lea edx, [ebp - 0x1c2c]
push edx
lea eax, [ebp - 0x1c28]
push eax
mov dword [ebp - 0x1c2c], 0
call fcn.0102c850
test eax, eax
jne 0x103234d
mov ecx, dword [ebp - 0x1c2c]
mov eax, dword [ebp - 0x1c28]
push ecx
lea edx, [ebp - 0x1c24]
push edx
push eax
push 0
push 0x1018704
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
mov esi, eax
jne 0x10326fb
cmp dword [ebp + 8], 7
jne 0x10323b4
lea ecx, [ebp - 0x1c28]
push ecx
push 0x101a4cc
lea ecx, [ebp - 0xc24]
call fcn.0102c120
mov esi, eax
test esi, esi
jne 0x10326fb
cmp dword [ebp - 0x1c28], 1
je 0x1032391
mov esi, 0xd
jmp 0x10326fb
mov eax, dword [ebp - 0x1c34]
push ebx
lea edx, [ebp - 0x1c28]
push edx
push 0x101a4cc
push eax
call fcn.0102c900
mov esi, eax
test esi, esi
jne 0x10326fb
xor ecx, ecx
xor ebx, ebx
cmp dword [edi + 0x1018144], ecx
jbe 0x10324d7
jmp 0x10323d2
xor ecx, ecx
mov edx, dword [edi + 0x1018140]
mov dword [ebp - 0x208], ecx
mov dword [ebp - 0x40c], ecx
mov eax, dword [edx + ebx*4]
mov ecx, dword [ebp - 0x1c48]
mov edx, dword [ecx]
shl eax, 6
mov eax, dword [eax + 0x1018110]
push eax
add ecx, 4
xor esi, esi
push ecx
mov dword [ebp - 0x208], edx
mov word [ebp - 6], si
call fcn.010247e0
push eax
push 0x1018498
lea ecx, [ebp - 0x204]
push 0xff
push ecx
call dword [sym.imp.MSVCR80.dll__snwprintf_l]
add esp, 0x18
test eax, eax
jge 0x1032432
mov esi, 0x6f
test esi, esi
jne 0x10326fb
mov edx, dword [edi + 0x1018140]
mov eax, dword [edx + ebx*4]
mov ecx, dword [ebp - 0x1c3c]
mov edx, dword [ecx]
shl eax, 6
mov eax, dword [eax + 0x1018110]
push eax
lea eax, [ecx + 4]
push eax
mov dword [ebp - 0x40c], edx
mov word [ebp - 0x20a], si
call fcn.010247e0
push eax
push 0x1018498
lea ecx, [ebp - 0x408]
push 0xff
push ecx
call dword [sym.imp.MSVCR80.dll__snwprintf_l]
add esp, 0x18
test eax, eax
jge 0x103248f
mov esi, 0x6f
test esi, esi
jne 0x10326fb
mov edx, dword [ebp + 0x14]
push edx
mov edx, dword [edi + 0x1018140]
lea eax, [ebp - 0x208]
push eax
mov eax, dword [edx + ebx*4]
lea ecx, [ebp - 0x40c]
push ecx
mov ecx, dword [ebp - 0x1c38]
push eax
call fcn.01031fc0
mov esi, eax
test esi, esi
jne 0x10326fb
add ebx, 1
cmp ebx, dword [edi + 0x1018144]
jb 0x10323d0
cmp dword [ebp + 8], 5
jne 0x10326fb
xor ebx, ebx
push ebx
lea ecx, [ebp - 0x1c2c]
push ecx
push ebx
lea ecx, [ebp - 0xc24]
call fcn.01030dc0
test eax, eax
jne 0x103263e
mov eax, dword [ebp - 0x1c2c]
test al, 1
je 0x1032513
mov esi, 0xd
jmp 0x10326fb
xor ecx, ecx
shr eax, 1
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
add esp, 4
cmp edi, ebx
mov dword [ebp - 0x1c40], edi
jne 0x1032544
mov esi, 0xe
jmp 0x10326fb
push ebx
lea eax, [ebp - 0x1c2c]
push eax
push edi
lea ecx, [ebp - 0xc24]
call fcn.01030dc0
test eax, eax
jne 0x103263e
cmp word [edi], bx
je 0x103263e
lea esp, [esp]
call fcn.010247e0
push eax
push 2
push edi
push 0x101a524
call dword [sym.imp.MSVCR80.dll__wcsnicmp_l]
add esp, 0x10
test eax, eax
jne 0x103261b
call fcn.010247e0
push eax
push 0x1001684
push edi
call dword [sym.imp.MSVCR80.dll__wcsicmp_l]
add esp, 0xc
test eax, eax
je 0x103261b
mov edx, dword [ebp - 0x1c48]
lea ecx, [ebp - 0x40c]
push ecx
push edi
push edx
mov dword [ebp - 0x40c], ebx
mov dword [ebp - 0x208], ebx
call fcn.0102c790
mov esi, eax
cmp esi, ebx
jne 0x10326fb
mov ecx, dword [ebp - 0x1c3c]
lea eax, [ebp - 0x208]
push eax
push edi
push ecx
call fcn.0102c790
mov esi, eax
test esi, esi
jne 0x10326fb
mov edx, dword [ebp + 0x14]
push edx
lea eax, [ebp - 0x40c]
push eax
lea ecx, [ebp - 0x208]
push ecx
mov ecx, dword [ebp - 0x1c38]
push 7
call fcn.01031fc0
mov esi, eax
test esi, esi
jne 0x10326fb
xor ebx, ebx
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x1032620
sub eax, edx
sar eax, 1
cmp word [edi + eax*2 + 2], bx
lea edi, [edi + eax*2 + 2]
jne 0x1032570
mov esi, dword [ebp - 0x1c38]
mov edx, dword [esi + 0x408]
mov eax, dword [ebp - 0x1c3c]
mov dword [ebp - 0x410], edx
add eax, 4
lea edx, [ebp - 0x810]
mov dword [ebp - 0x818], 5
sub edx, eax
jmp 0x1032670
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, bx
jne 0x1032670
mov eax, dword [ebp - 0x1c3c]
mov ecx, dword [eax]
lea eax, [esi + 0x208]
xor esi, esi
cmp eax, ebx
mov dword [ebp - 0x814], ecx
mov word [ebp - 0x610], bx
jne 0x10326b7
push 0x200
lea edx, [ebp - 0x610]
push ebx
push edx
call sub.MSVCR80.dll_memset
add esp, 0xc
jmp 0x10326e8
push eax
mov word [ebp - 0x412], bx
call fcn.010247e0
push eax
push 0x1018490
lea eax, [ebp - 0x610]
push 0xff
push eax
call dword [sym.imp.MSVCR80.dll__snwprintf_l]
add esp, 0x14
test eax, eax
jge 0x10326e8
mov esi, 0x6f
cmp esi, ebx
jne 0x10326fb
push 0
lea ecx, [ebp - 0x818]
call fcn.01031900
mov esi, eax
mov eax, dword [ebp - 0x1c44]
test eax, eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x103270e
push eax
call edi
mov eax, dword [ebp - 0x1c34]
test eax, eax
je 0x103271b
push eax
call edi
mov eax, dword [ebp - 0x1c40]
test eax, eax
je 0x103272e
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.01029f27
mov esp, ebp
pop ebp
ret 0x10