Function at 0x100a9b90
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xbc
mov eax, dword [0x10195820]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x94], ecx
cmp dword [ebp + 8], 0
jl 0x100a9bb5
cmp dword [ebp + 8], 2
jle 0x100a9bba
jmp 0x100a9f6c
movzx eax, byte [ebp + 8]
push eax
mov ecx, dword [ebp - 0x94]
call fcn.100a9b10
movzx ecx, al
cmp ecx, 1
jne 0x100a9bd7
jmp 0x100a9f6c
mov byte [ebp - 0x84], 0
push 0x7f
push 0
lea edx, [ebp - 0x83]
push edx
call fcn.1005e990
add esp, 0xc
movzx eax, byte [0x1052d92d]
cmp eax, 1
jne 0x100a9c0c
movzx ecx, byte [0x1052d92e]
mov dword [ebp - 0xa8], ecx
jmp 0x100a9c15
mov edx, dword [ebp + 8]
mov dword [ebp - 0xa8], edx
mov eax, dword [ebp - 0x94]
mov cl, byte [ebp - 0xa8]
mov byte [eax], cl
mov edx, dword [ebp - 0x94]
mov al, byte [edx]
mov byte [ebp - 0x98], al
cmp byte [ebp - 0x98], 0
je 0x100a9c4e
cmp byte [ebp - 0x98], 1
je 0x100a9c67
cmp byte [ebp - 0x98], 2
je 0x100a9c80
jmp 0x100a9c97
mov ecx, 0xe8c5c4
mov dx, word [0x1016bbd4]
mov word [ecx], dx
mov al, byte [0x1016bbd6]
mov byte [ecx + 2], al
jmp 0x100a9c97
mov ecx, 0xe8c5c4
mov dx, word [0x1016bbd8]
mov word [ecx], dx
mov al, byte [0x1016bbda]
mov byte [ecx + 2], al
jmp 0x100a9c97
mov ecx, 0xe8c5c4
mov dx, word [0x1016bbdc]
mov word [ecx], dx
mov al, byte [0x1016bbde]
mov byte [ecx + 2], al
push 0xe8c5c4
mov edx, 0x409b10
mov ecx, 0xe8c6ec
call edx
mov dword [ebp - 0x90], 0
jmp 0x100a9cc3
mov eax, dword [ebp - 0x90]
add eax, 1
mov dword [ebp - 0x90], eax
cmp dword [ebp - 0x90], 0x270f
jge 0x100a9ce4
mov ecx, dword [ebp - 0x90]
push ecx
mov edx, 0x668df0
mov ecx, 0x8128adc
call edx
jmp 0x100a9cb4
mov eax, 0x861110
call eax
mov dword [ebp - 0xb0], eax
mov ecx, 0x6345a0
call ecx
push 0x11bb68
mov edx, 0x9d00c5
call edx
add esp, 4
mov dword [ebp - 0xac], eax
mov dword [ebp - 0x9c], 0
cmp dword [ebp - 0xac], 0
je 0x100a9d57
push str.ToolTips_Generated
push 0x1019a382
call fcn.1011c3d0
add esp, 8
mov eax, 0x7e3000
mov ecx, dword [ebp - 0xac]
call eax
mov dword [ebp - 0x9c], eax
mov ecx, dword [ebp - 0xb0]
mov edx, dword [ebp - 0x9c]
mov dword [ecx + 0x134], edx
mov dword [0x8128ad4], 0
push 0xe8c5c4
push 0xe8c5c4
push str.DataLocal_sNpcName__s_.txt
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea ecx, [ebp - 0x84]
push ecx
mov edx, 0x590d00
call edx
add esp, 4
push 0xe8c5c4
push 0xe8c5c4
push str.DataLocal_sQuest__s.bmd
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov ecx, 0x5be390
call ecx
mov dword [ebp - 0xb4], eax
lea edx, [ebp - 0x84]
push edx
mov eax, 0x4f33f0
mov ecx, dword [ebp - 0xb4]
call eax
push 0xe8c5c4
push 0xe8c5c4
push str.DataLocal_sSkill__s.bmd
lea ecx, [ebp - 0x84]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea edx, [ebp - 0x84]
push edx
mov eax, 0x58a3f0
call eax
add esp, 4
push 0xe8c5c4
push 0xe8c5c4
push str.DataLocal_sSocketItem__s.bmd
lea ecx, [ebp - 0x84]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea edx, [ebp - 0x84]
push edx
mov eax, 0x969850
mov ecx, 0x986c1b8
call eax
push 0xe8c5c4
push 0xe8c5c4
push str.DataLocal_sMasterSkillTooltip__s.bmd
lea ecx, [ebp - 0x84]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov edx, dword [ebp - 0xb0]
mov eax, dword [edx + 0xdc]
mov dword [ebp - 0xa4], eax
lea ecx, [ebp - 0x84]
push ecx
mov edx, 0x819760
mov ecx, dword [ebp - 0xa4]
call edx
mov eax, 0x819c80
mov ecx, dword [ebp - 0xa4]
call eax
mov ecx, 0x104c6898
call fcn.100c4660
mov ecx, 0x104c1da0
call fcn.100a61f0
mov ecx, dword [ebp - 0x94]
call fcn.100a9b40
lea ecx, [ebp - 0xa0]
push ecx
push 0xf003f
push 0
push 0x1016bc94
push getpeername
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100a9f43
mov dword [ebp - 0x8c], 0xe8c5c4
mov edx, dword [ebp - 0x8c]
add edx, 1
mov dword [ebp - 0xbc], edx
mov eax, dword [ebp - 0x8c]
mov cl, byte [eax]
mov byte [ebp - 0x85], cl
add dword [ebp - 0x8c], 1
cmp byte [ebp - 0x85], 0
jne 0x100a9edf
mov edx, dword [ebp - 0x8c]
sub edx, dword [ebp - 0xbc]
mov dword [ebp - 0xb8], edx
mov eax, dword [ebp - 0xb8]
add eax, 1
push eax
push 0xe8c5c4
push 1
push 0
push 0x1016bcb0
mov ecx, dword [ebp - 0xa0]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [ebp - 0xa0]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x100a9f55
push 0x1016bcc0
push 0x1019a382
call fcn.1011c3d0
add esp, 8
push 0xe8c5c4
push str.Lang_changed_to__s
push 0x1019a382
call fcn.1011c3d0
add esp, 0xc
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10056240
mov esp, ebp
pop ebp
ret 4