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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1230
call fcn.01032f80
mov eax, dword [0x1039004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
lea esi, [ebp - 0x1230]
push esi
xor ebx, ebx
lea edx, [eax + 4]
mov dword [ebp - 0x1224], eax
mov eax, dword [eax]
lea esi, [ebp - 0x121c]
push esi
push ebx
or eax, 0x20007
push eax
push ebx
push ebx
push ebx
mov dword [ebp - 0x122c], ecx
mov ecx, dword [ecx + 0x408]
push edx
push ecx
mov dword [ebp - 0x121c], ebx
mov dword [ebp - 0x1220], ebx
mov dword [ebp - 0x1228], edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edi, eax
cmp edi, ebx
jne 0x1031764
mov esi, dword [ebp + 8]
shl esi, 6
cmp dword [esi + 0x1018134], ebx
mov dword [ebp - 0x1210], ebx
jbe 0x10313a4
mov dword [ebp - 0x1214], ebx
jmp 0x10312f0
cmp dword [ebp + 0x10], 0
mov edx, dword [esi + 0x1018130]
mov eax, dword [ebp - 0x1214]
mov ebx, dword [ebp - 0x121c]
lea edi, [eax + edx]
mov dword [ebp - 0x120c], 4
mov ecx, dword [edi + 0x204]
mov dword [ebp - 0x1208], ecx
jne 0x1031335
push 0
push 0
push 0
push 0
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x1031375
lea edx, [ebp - 0x1218]
push edx
lea eax, [ebp - 0x120c]
push eax
mov dword [ebp - 0x1218], 0
call fcn.0102c850
test eax, eax
jne 0x1031375
mov ecx, dword [ebp - 0x1218]
mov eax, dword [ebp - 0x120c]
push ecx
lea edx, [ebp - 0x1208]
push edx
push eax
push 0
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
mov edi, eax
jne 0x1031764
mov eax, dword [ebp - 0x1210]
add dword [ebp - 0x1214], 0x1208
add eax, 1
cmp eax, dword [esi + 0x1018134]
mov dword [ebp - 0x1210], eax
jb 0x10312f0
xor ebx, ebx
cmp dword [esi + 0x101813c], ebx
mov dword [ebp - 0x1218], ebx
jbe 0x10314e1
mov dword [ebp - 0x1214], ebx
jmp 0x10313c6
mov ebx, dword [ebp - 0x1214]
mov ecx, dword [esi + 0x1018138]
lea eax, [ebx + ecx]
mov ecx, dword [eax + 0x200]
cmp ecx, 4
mov dword [ebp - 0x120c], ecx
jne 0x10313ee
mov edx, dword [eax + 0x204]
mov dword [ebp - 0x1208], edx
jmp 0x103144a
lea ecx, [ebp - 0x1210]
push ecx
mov ecx, dword [ebp - 0x122c]
lea edx, [ebp - 0x120c]
push edx
push eax
mov eax, dword [ebp + 8]
push eax
mov dword [ebp - 0x1210], 0
call fcn.0102c970
mov edi, eax
test edi, edi
jne 0x1031764
cmp dword [ebp - 0x1210], eax
jne 0x103144a
mov ecx, dword [esi + 0x1018138]
push 0x1000
lea edx, [ebx + ecx + 0x208]
push edx
lea eax, [ebp - 0x1208]
push eax
call sub.MSVCR80.dll_memcpy
add esp, 0xc
mov edi, dword [esi + 0x1018138]
add edi, ebx
cmp dword [ebp + 0x10], 0
mov ebx, dword [ebp - 0x121c]
jne 0x1031472
push 0
push 0
push 0
push 0
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x10314b2
lea ecx, [ebp - 0x1210]
push ecx
lea edx, [ebp - 0x120c]
push edx
mov dword [ebp - 0x1210], 0
call fcn.0102c850
test eax, eax
jne 0x10314b2
mov eax, dword [ebp - 0x1210]
mov edx, dword [ebp - 0x120c]
push eax
lea ecx, [ebp - 0x1208]
push ecx
push edx
push 0
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
mov edi, eax
jne 0x1031764
mov eax, dword [ebp - 0x1218]
add dword [ebp - 0x1214], 0x1208
add eax, 1
cmp eax, dword [esi + 0x101813c]
mov dword [ebp - 0x1218], eax
jb 0x10313c0
mov eax, dword [esi + 0x101814c]
mov ecx, dword [esi + 0x1018148]
push eax
push ecx
lea edx, [ebp - 0x1208]
push edx
mov dword [ebp - 0x120c], 1
call sub.MSVCR80.dll_memcpy
mov eax, dword [ebp - 0x121c]
xor ebx, ebx
add esp, 0xc
cmp dword [ebp + 0x10], ebx
mov edi, eax
jne 0x103152b
push ebx
push ebx
push ebx
push ebx
push 0x1018704
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
je 0x103156a
lea eax, [ebp - 0x1210]
push eax
lea ecx, [ebp - 0x120c]
push ecx
mov dword [ebp - 0x1210], ebx
call fcn.0102c850
cmp eax, ebx
jne 0x103156a
mov edx, dword [ebp - 0x1210]
mov ecx, dword [ebp - 0x120c]
push edx
lea eax, [ebp - 0x1208]
push eax
push ecx
push ebx
push 0x1018704
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp eax, ebx
mov edi, eax
jne 0x1031764
xor ecx, ecx
cmp dword [esi + 0x1018144], ecx
jbe 0x1031630
jmp 0x1031592
xor ecx, ecx
mov edx, dword [esi + 0x1018140]
mov dword [ebp - 0x208], ecx
mov eax, dword [edx + ebx*4]
mov edx, dword [ebp - 0x1224]
mov edx, dword [edx]
shl eax, 6
mov eax, dword [eax + 0x1018110]
mov word [ebp - 6], cx
mov ecx, dword [ebp - 0x1228]
push eax
push ecx
xor edi, edi
mov dword [ebp - 0x208], edx
call fcn.010247e0
push eax
push 0x1018498
lea edx, [ebp - 0x204]
push 0xff
push edx
call dword [sym.imp.MSVCR80.dll__snwprintf_l]
add esp, 0x18
test eax, eax
jge 0x10315ef
mov edi, 0x6f
test edi, edi
jne 0x1031764
mov eax, dword [ebp + 0x10]
mov edx, dword [esi + 0x1018140]
push eax
mov eax, dword [edx + ebx*4]
lea ecx, [ebp - 0x208]
push ecx
mov ecx, dword [ebp - 0x122c]
push eax
call fcn.01031250
mov edi, eax
test edi, edi
jne 0x1031764
add ebx, 1
cmp ebx, dword [esi + 0x1018144]
jb 0x1031590
cmp dword [ebp + 8], 5
jne 0x1031764
lea ecx, [ebp - 0x1220]
push ecx
mov ecx, dword [ebp - 0x122c]
call fcn.0102fb20
mov edi, eax
test edi, edi
jne 0x1031764
mov edx, dword [ebp - 0x1224]
mov eax, dword [edx]
mov ecx, dword [0x10182d0]
mov edx, dword [ebp - 0x1228]
push ecx
push edx
mov dword [ebp - 0x208], eax
mov word [ebp - 6], di
call fcn.010247e0
push eax
push 0x1018498
lea eax, [ebp - 0x204]
push 0xff
push eax
call dword [sym.imp.MSVCR80.dll__snwprintf_l]
add esp, 0x18
test eax, eax
jge 0x103169f
mov edi, 0x6f
test edi, edi
jne 0x1031764
lea eax, [ebp - 0x204]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10316b0
sub eax, edx
mov edx, dword [ebp - 0x1220]
xor ecx, ecx
sar eax, 1
cmp dword [edx], ecx
jbe 0x1031764
mov edx, 0xff
sub edx, eax
lea eax, [ebp + eax*2 - 0x204]
mov dword [ebp - 0x1228], edx
mov dword [ebp - 0x1224], eax
xor ebx, ebx
jmp 0x10316f0
lea esi, [ecx + 1]
xor edi, edi
push esi
mov word [ebp - 6], di
call fcn.010247e0
mov ecx, dword [ebp - 0x1228]
mov edx, dword [ebp - 0x1224]
push eax
push 0x10184a4
push ecx
push edx
call dword [sym.imp.MSVCR80.dll__snwprintf_l]
add esp, 0x14
test eax, eax
jge 0x1031725
mov edi, 0x6f
test edi, edi
jne 0x1031764
mov ecx, dword [ebp - 0x1220]
mov edx, dword [ecx + 4]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x122c]
push edi
push eax
add edx, ebx
push edx
lea eax, [ebp - 0x208]
push eax
call fcn.010317c0
mov edi, eax
test edi, edi
jne 0x1031764
mov edx, dword [ebp - 0x1220]
mov ecx, esi
add ebx, 0x802
cmp ecx, dword [edx]
jb 0x10316f0
mov eax, dword [ebp - 0x121c]
test eax, eax
je 0x1031775
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0x1220]
test esi, esi
je 0x1031798
mov eax, dword [esi + 4]
test eax, eax
je 0x103178f
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01029f27
mov esp, ebp
pop ebp
ret 0xc