Function at 0x4222ee
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x455094
mov eax, dword fs:[0]
push eax
sub esp, 0x190
mov eax, dword [0x47362c]
xor eax, esp
mov dword [esp + 0x188], eax
push ebx
push esi
push edi
mov eax, dword [0x47362c]
xor eax, esp
push eax
lea eax, [esp + 0x1a0]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
mov dword [esp + 0x18], ecx
mov ecx, dword [ebp + 8]
lea ebx, [esp + 0x110]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x20], esi
call fcn.004212bf
xor edi, edi
mov dword [esp + 0x1a8], edi
cmp dword [esp + 0x120], edi
je 0x4223b0
mov eax, ebx
mov ebx, dword [esp + 0x18]
push 1
push eax
lea edi, [esp + 0x150]
call fcn.00421571
push esi
lea ecx, [esp + 0x130]
push ecx
mov ecx, eax
mov byte [esp + 0x1b0], 1
call fcn.004222ee
xor ebx, ebx
mov esi, edi
mov byte [esp + 0x1a8], bl
call fcn.004215f5
push ebx
push 1
lea ecx, [esp + 0x134]
call fcn.00405db8
push ebx
jmp 0x422541
cmp dword [esi + 0x14], 0x10
mov ecx, dword [esi + 0x10]
jb 0x4223bd
mov ebx, dword [esi]
jmp 0x4223bf
mov ebx, esi
mov edx, dword [esp + 0x14]
cmp dword [edx + 0x14], 0x10
jb 0x4223cb
mov edx, dword [edx]
mov esi, dword [esp + 0x18]
mov eax, dword [esi]
inc ecx
push ecx
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 1
push edi
push edx
push eax
call ebx
mov dword [esp + 0x1c], eax
cmp eax, edi
je 0x4224ba
push str.set_string_value
lea ecx, [esp + 0xf8]
call fcn.00405ba6
mov dword [esp + 0xec], 0xf
mov dword [esp + 0xe8], edi
mov byte [esp + 0xd8], 0
push dword [esp + 0x14]
lea eax, [esp + 0xf8]
push eax
lea eax, [esp + 0x150]
push eax
push esi
lea ecx, [esp + 0xe8]
mov byte [esp + 0x1b8], 3
call fcn.00422aa5
mov edi, eax
lea esi, [esp + 0x3c]
mov byte [esp + 0x1a8], 4
call fcn.00418c95
push str.System_error
push dword [esp + 0x20]
mov eax, esi
push eax
mov ecx, ebx
lea edi, [esp + 0x3c]
mov byte [esp + 0x1b4], 5
call fcn.00425e12
lea ecx, [esp + 0x170]
mov byte [esp + 0x1a8], 6
push ecx
lea esi, [esp + 0x28]
mov ecx, eax
mov dword [esp + 0x28], str.c:_workspace_8_2_build_windows_i586_cygwin_jdk8u102_6817.nc_install_src_windows_common_Registry.cpp
mov dword [esp + 0x2c], str.Registry::setString
mov dword [esp + 0x30], 0x187
call fcn.00419a1a
lea eax, [esp + 0x174]
mov dword [esp], 0x467ffc
push eax
call fcn.0043da7f
cmp dword [0x4774c0], edi
jg 0x422531
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
lea esi, [esp + 0xd8]
call fcn.0042182d
push edi
push dword [esp + 0x24]
mov byte [esp + 0x1b0], 7
push eax
lea eax, [esp + 0x100]
push eax
call fcn.00422d0b
add esp, 0x10
push str.Registry::setString
push 0x18a
push str.c:_workspace_8_2_build_windows_i586_cygwin_jdk8u102_6817.nc_install_src_windows_common_Registry.cpp
push edi
mov edx, eax
mov ecx, 0x4774c0
mov byte [esp + 0x1b8], 8
call fcn.00412978
push edi
push 1
lea ecx, [esp + 0xfc]
call fcn.00405db8
push edi
push 1
mov ecx, esi
call fcn.00405db8
push edi
push 1
lea ecx, [esp + 0x134]
call fcn.00405db8
push edi
push 1
lea ecx, [esp + 0x118]
call fcn.00405db8
mov ecx, dword [esp + 0x1a0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x188]
xor ecx, esp
call fcn.004363ed
mov esp, ebp
pop ebp
ret 8