Function at 0x10003910
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x1002c88c
mov eax, dword fs:[0]
push eax
sub esp, 0x130
mov eax, dword [0x10037a90]
xor eax, esp
mov dword [esp + 0x12c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10037a90]
xor eax, esp
push eax
lea eax, [esp + 0x144]
mov dword fs:[0], eax
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
xor ebp, ebp
push 0x1002e5e8
mov dword [esp + 0x18], ebp
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
push str.GetUserDefaultUILanguage
push edi
call ebx
cmp eax, ebp
je 0x10003a7d
call eax
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
movzx eax, ax
mov dword [esp + 0x14], eax
movzx eax, ax
push eax
lea ecx, [esp + 0x44]
push str.SSMUIDLL::DetectUILanguage___1st_2nd___04X_n
push ecx
call esi
mov eax, dword [esp + 0x20]
push eax
lea edx, [esp + 0x28]
push edx
mov word [0x10038e04], ax
call sym.ssMUI.dll_LANGIDtoLANGSting
add esp, 0x14
push eax
mov ecx, 0x10038e40
mov dword [esp + 0x150], ebp
call fcn.10003050
mov eax, dword [esp + 0x18]
or ebp, 0xffffffff
add eax, 0xfffffff0
mov dword [esp + 0x14c], ebp
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x100039e8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x14]
push ecx
call fcn.100011f0
add esp, 4
push str.GetSystemDefaultUILanguage
push edi
call ebx
call eax
movzx eax, ax
movzx edx, ax
push edx
mov dword [esp + 0x18], eax
lea eax, [esp + 0x44]
push str.SSMUIDLL::DetectUILanguage___3rd_4th___04X_n
push eax
call esi
mov ecx, dword [esp + 0x20]
push ecx
lea edx, [esp + 0x28]
push edx
call sym.ssMUI.dll_LANGIDtoLANGSting
add esp, 0x14
push eax
mov ecx, 0x10038e44
mov dword [esp + 0x150], 1
call fcn.10003050
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov dword [esp + 0x14c], ebp
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x10003a62
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x14]
push ecx
call fcn.100011f0
mov dx, word [esp + 0x18]
mov word [0x10038e00], dx
jmp 0x10003c0e
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
jns 0x10003b80
lea eax, [esp + 0x18]
push eax
push 0x20019
push ebp
push str.Control_PanelDesktopResourceLocale
push 0x80000001
mov dword [esp + 0x2c], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10003c11
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x34]
push eax
push ebp
push ebp
push ecx
mov dword [esp + 0x40], 0x10
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebp
jne 0x10003b70
cmp dword [esp + 0x2c], 1
jne 0x10003b70
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x34]
push 0x1002e504
push eax
call fcn.100180fd
add esp, 0xc
cmp eax, 1
jne 0x10003b70
mov eax, dword [esp + 0x1c]
movzx ecx, ax
push eax
lea edx, [esp + 0x24]
push edx
mov dword [esp + 0x1c], ecx
call sym.ssMUI.dll_LANGIDtoLANGSting
add esp, 8
push eax
mov ecx, 0x10038e40
mov dword [esp + 0x150], 2
call fcn.10003050
lea ecx, [esp + 0x20]
mov dword [esp + 0x14c], 0xffffffff
call fcn.10002470
push 0x1002e4d8
mov ecx, 0x10038e44
call fcn.10003270
mov eax, dword [esp + 0x14]
push eax
call fcn.100011f0
mov cx, word [esp + 0x18]
add esp, 4
mov word [0x10038e00], cx
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10003c11
push str.ntdll.dll
call esi
cmp eax, ebp
je 0x10003c11
lea ecx, [esp + 0x14]
push ecx
push 0x10001200
push 1
push 0x10
push eax
mov dword [esp + 0x28], ebp
call dword [sym.imp.KERNEL32.dll_EnumResourceLanguagesA]
mov eax, dword [esp + 0x14]
cmp ax, bp
je 0x10003c11
push eax
lea edx, [esp + 0x28]
push edx
call sym.ssMUI.dll_LANGIDtoLANGSting
add esp, 8
push eax
mov ecx, 0x10038e40
mov dword [esp + 0x150], 3
call fcn.10003050
lea ecx, [esp + 0x24]
mov dword [esp + 0x14c], 0xffffffff
call fcn.10002470
push 0x1002e4d8
mov ecx, 0x10038e44
call fcn.10003270
mov eax, dword [esp + 0x14]
push eax
call fcn.100011f0
mov cx, word [esp + 0x18]
mov word [0x10038e00], cx
add esp, 4
mov eax, dword [0x10038e38]
cmp eax, 0xa
jge 0x10003c2e
mov dword [eax*4 + 0x10038e10], 0x800
inc eax
mov dword [0x10038e38], eax
jmp 0x10003c42
mov dword [0x10038e34], 0x800
mov dword [0x10038e38], 0xa
mov ax, word [0x10038e10]
mov ecx, dword [esp + 0x144]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x12c]
xor ecx, esp
call fcn.100159fa
add esp, 0x13c
ret