Function at 0x10031d70
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c1e58
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x10101404]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x5c], edx
xor ebx, ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 4], ebx
lea eax, [ebx + 0x10]
call fcn.100b0040
mov dword [ebp - 0x10], esp
mov edi, esp
push 0xdead000b
push 0xe3beef
lea eax, [ebp - 0x54]
push eax
call fcn.100018e0
add esp, 0xc
mov byte [ebp - 4], 1
cmp dword [eax + 0x14], 0x10
jb 0x10031de1
mov eax, dword [eax]
mov ecx, dword [eax]
mov dword [edi], ecx
mov edx, dword [eax + 4]
mov dword [edi + 4], edx
mov ecx, dword [eax + 8]
mov dword [edi + 8], ecx
mov edx, dword [eax + 0xc]
mov dword [edi + 0xc], edx
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x54]
call fcn.10002d60
mov eax, 4
call fcn.100b0040
mov dword [ebp - 0x10], esp
mov eax, esp
mov dword [ebp - 0x60], eax
cmp eax, ebx
je 0x10031e1e
mov dword [eax], 0xabab00e3
mov dword [ebp - 4], 0xffffffff
jmp 0x10031e36
mov eax, dword [ebp - 0x60]
cmp eax, ebx
je 0x10031e43
mov dword [eax], 0xcdcd00e3
mov esi, 6
mov dword [ebp - 0x64], esi
test byte [0x10106d78], 1
jne 0x10031e7b
or dword [0x10106d78], 1
mov dword [ebp - 4], 3
call fcn.10030630
push 0x100ce5d0
call fcn.100af684
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x64]
push eax
mov edi, 0x10106d28
call fcn.10030d50
test al, al
je 0x10031fc1
mov dword [ebp - 0x24], 0xf
mov dword [ebp - 0x28], ebx
mov byte [ebp - 0x38], bl
mov dword [ebp - 4], 4
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], 5
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], esi
lea edi, [ebp - 0x38]
call fcn.10031570
mov ecx, dword [eax + 0x1c]
cmp ecx, ebx
jne 0x10031ed4
push 0xd
push str.EnterFunction
mov ecx, eax
call fcn.1000bc70
jmp 0x10031ee2
push str.EnterFunction
push ecx
call fcn.1000d880
add esp, 8
push 0x1ff
push ebx
lea ecx, [ebp - 0x54]
push ecx
mov ecx, dword [ebp - 0x18]
call fcn.10001860
mov edi, eax
mov byte [ebp - 4], 7
test byte [0x10106d78], 1
jne 0x10031f2b
or dword [0x10106d78], 1
mov esi, 8
mov byte [ebp - 4], 8
call fcn.10030630
push 0x100ce5d0
call fcn.100af684
add esp, 4
mov byte [ebp - 4], 7
jmp 0x10031f30
mov esi, 8
mov ecx, 0x10106d2c
mov dword [ebp - 0x64], ecx
mov edx, dword [0x10106d2c]
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 9
mov ecx, dword [0x10106d74]
cmp ecx, ebx
je 0x10031f75
cmp dword [edi + 0x14], esi
jb 0x10031f5a
mov eax, dword [edi]
jmp 0x10031f5c
mov eax, edi
mov edx, dword [ecx]
push 0xe3
push str.RegistryHandler::SetStringValue
push str.RegistryHandler.cpp
push eax
push 6
mov eax, dword [edx + 8]
call eax
mov byte [ebp - 4], 7
mov edx, dword [0x10106d2c]
mov ecx, 0x10106d2c
mov eax, dword [edx + 8]
call eax
mov byte [ebp - 4], 6
cmp dword [ebp - 0x40], esi
jb 0x10031f9f
mov ecx, dword [ebp - 0x54]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [ebp - 0x40], 7
mov dword [ebp - 0x44], ebx
xor edx, edx
mov word [ebp - 0x54], dx
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x38]
push eax
call fcn.10031440
jmp 0x10031fc6
mov esi, 8
mov eax, dword [ebp - 0x60]
cmp eax, ebx
je 0x10031fd3
mov dword [eax], 0xcdcd00e4
mov dword [ebp - 0x64], 6
test byte [0x10106d78], 1
jne 0x1003200a
or dword [0x10106d78], 1
mov dword [ebp - 4], 0xa
call fcn.10030630
push 0x100ce5d0
call fcn.100af684
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x64]
push ecx
mov edi, 0x10106d28
call fcn.10030d50
test al, al
je 0x1003216b
mov dword [ebp - 0x24], 0xf
mov dword [ebp - 0x28], ebx
mov byte [ebp - 0x38], bl
mov dword [ebp - 4], 0xb
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], 0xc
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], 0xd
lea edi, [ebp - 0x38]
call fcn.10031570
mov edi, eax
mov eax, dword [edi + 0x1c]
cmp eax, ebx
jne 0x10032069
push 0x13
push str.EnterFunction_Name
mov ecx, edi
call fcn.1000bc70
jmp 0x10032077
push str.EnterFunction_Name
push eax
call fcn.1000d880
add esp, 8
mov eax, dword [edi + 0x1c]
cmp eax, ebx
jne 0x1003208e
push 0xffffffffffffffff
push ebx
mov edx, dword [ebp - 0x58]
push edx
mov ecx, edi
call fcn.10011090
jmp 0x1003209b
mov ecx, dword [ebp - 0x58]
push ecx
push eax
call fcn.100289b0
add esp, 8
push 0x1ff
push ebx
lea edx, [ebp - 0x54]
push edx
mov ecx, dword [ebp - 0x18]
call fcn.10001860
mov edi, eax
mov byte [ebp - 4], 0xe
test byte [0x10106d78], 1
jne 0x100320dd
or dword [0x10106d78], 1
mov byte [ebp - 4], 0xf
call fcn.10030630
push 0x100ce5d0
call fcn.100af684
add esp, 4
mov byte [ebp - 4], 0xe
mov ecx, 0x10106d2c
mov dword [ebp - 0x64], ecx
mov eax, dword [0x10106d2c]
mov edx, dword [eax + 4]
call edx
mov byte [ebp - 4], 0x10
mov ecx, dword [0x10106d74]
cmp ecx, ebx
je 0x10032121
cmp dword [edi + 0x14], esi
jb 0x10032106
mov eax, dword [edi]
jmp 0x10032108
mov eax, edi
mov edx, dword [ecx]
push 0xe4
push str.RegistryHandler::SetStringValue
push str.RegistryHandler.cpp
push eax
push 6
mov eax, dword [edx + 8]
call eax
mov byte [ebp - 4], 0xe
mov edx, dword [0x10106d2c]
mov ecx, 0x10106d2c
mov eax, dword [edx + 8]
call eax
mov byte [ebp - 4], 0xd
cmp dword [ebp - 0x40], esi
jb 0x1003214b
mov ecx, dword [ebp - 0x54]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [ebp - 0x40], 7
mov dword [ebp - 0x44], ebx
xor edx, edx
mov word [ebp - 0x54], dx
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x38]
push eax
call fcn.10031440
mov dword [ebp - 0x68], ebx
mov ecx, dword [ebp - 0x6c]
push ecx
lea ecx, [ebp - 0x68]
call fcn.10034650
add esp, 4
test al, al
je 0x100323a7
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ecx + 0x10]
cmp edx, ebx
jne 0x100321aa
mov eax, dword [ebp - 0x58]
cmp dword [eax + 0x14], esi
jb 0x10032199
mov eax, dword [eax]
push 1
push 0x100cfcd0
push 1
push ebx
push eax
mov edx, dword [ebp - 0x68]
push edx
jmp 0x100321c7
cmp dword [ecx + 0x14], esi
jb 0x100321b1
mov ecx, dword [ecx]
mov eax, dword [ebp - 0x58]
cmp dword [eax + 0x14], esi
jb 0x100321bb
mov eax, dword [eax]
add edx, edx
push edx
push ecx
push 1
push ebx
push eax
mov eax, dword [ebp - 0x68]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp eax, ebx
je 0x100323ae
mov eax, dword [ebp - 0x60]
cmp eax, ebx
je 0x100321e2
mov dword [eax], 0xcdcd00ff
mov dword [ebp - 0x5c], 2
lea ecx, [ebp - 0x5c]
push ecx
call fcn.10030800
mov edi, eax
call fcn.10030d50
test al, al
je 0x100322d3
mov dword [ebp - 0x24], 0xf
mov dword [ebp - 0x28], ebx
mov byte [ebp - 0x38], bl
mov dword [ebp - 4], 0x11
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], 0x12
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], 0x13
lea edi, [ebp - 0x38]
call fcn.10031570
mov edx, str.RegSetValueExW_failed._Name
mov esi, eax
call fcn.10030f60
mov ecx, dword [eax + 0x1c]
cmp ecx, ebx
jne 0x10032254
push 0xffffffffffffffff
push ebx
mov edx, dword [ebp - 0x58]
push edx
mov ecx, eax
call fcn.10011090
jmp 0x10032261
mov eax, dword [ebp - 0x58]
push eax
push ecx
call fcn.100289b0
add esp, 8
push 0x1ff
push ebx
lea ecx, [ebp - 0x54]
push ecx
mov ecx, dword [ebp - 0x18]
call fcn.10001860
mov ebx, eax
mov byte [ebp - 4], 0x14
push 0xff
push str.RegistryHandler::SetStringValue
push str.RegistryHandler.cpp
push 2
call fcn.10030800
mov ecx, eax
call fcn.10030e00
mov byte [ebp - 4], 0x13
cmp dword [ebp - 0x40], 8
jb 0x100322ad
mov edx, dword [ebp - 0x54]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [ebp - 0x40], 7
mov dword [ebp - 0x44], 0
xor eax, eax
mov word [ebp - 0x54], ax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
push ecx
call fcn.10031440
xor ebx, ebx
mov edx, dword [ebp - 0x68]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x100323a7
mov eax, dword [ebp - 0x60]
cmp eax, ebx
je 0x100322f2
mov dword [eax], 0xcdcd0102
mov dword [ebp - 0x5c], 2
lea eax, [ebp - 0x5c]
push eax
call fcn.10030800
mov edi, eax
call fcn.10030d50
test al, al
je 0x100323a7
mov dword [ebp - 0x24], 0xf
mov dword [ebp - 0x28], ebx
mov byte [ebp - 0x38], bl
mov dword [ebp - 4], 0x15
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], 0x16
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], 0x17
lea edi, [ebp - 0x38]
call fcn.10031570
mov edx, str.RegCloseKey_failed._Name
mov esi, eax
call fcn.10030f60
mov ecx, dword [ebp - 0x58]
mov esi, eax
call fcn.10030f30
push 0x1ff
push ebx
lea ecx, [ebp - 0x54]
push ecx
mov ecx, dword [ebp - 0x18]
call fcn.10001860
mov ebx, eax
mov byte [ebp - 4], 0x18
push 0x102
push str.RegistryHandler::SetStringValue
push str.RegistryHandler.cpp
push 2
call fcn.10030800
mov ecx, eax
call fcn.10030e00
mov byte [ebp - 4], 0x17
lea ecx, [ebp - 0x54]
call fcn.10002d90
mov dword [ebp - 4], 0xffffffff
mov edx, edi
push edx
call fcn.10031440
xor al, al
jmp 0x1003254a
mov eax, dword [ebp - 0x68]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
mov eax, dword [ebp - 0x60]
je 0x10032489
cmp eax, ebx
je 0x100323cd
mov dword [eax], 0xcdcd0108
mov dword [ebp - 0x5c], 2
lea ecx, [ebp - 0x5c]
push ecx
call fcn.10030800
mov edi, eax
call fcn.10030d50
test al, al
je 0x10032482
mov dword [ebp - 0x24], 0xf
mov dword [ebp - 0x28], ebx
mov byte [ebp - 0x38], bl
mov dword [ebp - 4], 0x19
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], 0x1a
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], 0x1b
lea edi, [ebp - 0x38]
call fcn.10031570
mov edx, str.RegCloseKey_failed._Name
mov esi, eax
call fcn.10030f60
mov ecx, dword [ebp - 0x58]
mov esi, eax
call fcn.10030f30
push 0x1ff
push ebx
lea edx, [ebp - 0x54]
push edx
mov ecx, dword [ebp - 0x18]
call fcn.10001860
mov ebx, eax
mov byte [ebp - 4], 0x1c
push 0x108
push str.RegistryHandler::SetStringValue
push str.RegistryHandler.cpp
push 2
call fcn.10030800
mov ecx, eax
call fcn.10030e00
mov byte [ebp - 4], 0x1b
lea ecx, [ebp - 0x54]
call fcn.10002d90
mov dword [ebp - 4], 0xffffffff
mov eax, edi
push eax
call fcn.10031440
xor al, al
jmp 0x1003254a
cmp eax, ebx
je 0x10032493
mov dword [eax], 0xcdcd010d
mov dword [ebp - 0x5c], 6
lea ecx, [ebp - 0x5c]
push ecx
call fcn.10030800
mov edi, eax
call fcn.10030d50
test al, al
je 0x10032548
mov dword [ebp - 0x24], 0xf
mov dword [ebp - 0x28], ebx
mov byte [ebp - 0x38], bl
mov dword [ebp - 4], 0x1d
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], 0x1e
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], 0x1f
lea edi, [ebp - 0x38]
call fcn.10031570
mov edx, str.ExitFunction_Name
mov esi, eax
call fcn.10030f60
mov ecx, dword [ebp - 0x58]
mov esi, eax
call fcn.10030f30
push 0x1ff
push ebx
lea edx, [ebp - 0x54]
push edx
mov ecx, dword [ebp - 0x18]
call fcn.10001860
mov ebx, eax
mov byte [ebp - 4], 0x20
push 0x10d
push str.RegistryHandler::SetStringValue
push str.RegistryHandler.cpp
push 6
call fcn.10030800
mov ecx, eax
call fcn.10030e00
mov byte [ebp - 4], 0x1f
lea ecx, [ebp - 0x54]
call fcn.10002d90
mov dword [ebp - 4], 0xffffffff
mov eax, edi
push eax
call fcn.10031440
mov al, 1
lea esp, [ebp - 0x7c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.100af1c6
mov esp, ebp
pop ebp
ret