Function at 0x40ae30
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42f262
mov eax, dword fs:[0]
push eax
sub esp, 0x13c
mov eax, dword [0x44206c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov dword [ebp - 0x144], edi
mov dword [ebp - 0x140], 0
call fcn.0040d340
mov esi, eax
test esi, esi
je 0x40af0c
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40ae85
sub ecx, edx
sar ecx, 1
push ecx
push esi
mov ecx, 0x44409c
call fcn.00409200
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [0x44409c]
mov esi, dword [ecx - 0xc]
test esi, esi
js 0x40b2aa
mov eax, dword [ecx - 8]
mov edx, 1
sub edx, dword [ecx - 4]
sub eax, esi
or eax, edx
jge 0x40aee3
push esi
mov ecx, 0x44409c
call fcn.00409100
mov ecx, dword [0x44409c]
lea eax, [esi + 1]
push eax
push ecx
call fcn.0041e0f9
mov eax, dword [0x44409c]
add esp, 8
cmp esi, dword [eax - 8]
jg 0x40b2aa
mov dword [eax - 0xc], esi
xor ecx, ecx
mov eax, dword [0x44409c]
mov word [eax + esi*2], cx
push 0x110
lea eax, [ebp - 0x120]
mov dword [ebp - 0x124], 0x114
push 0
push eax
call fcn.00416710
add esp, 0xc
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx eax, ax
mov dword [ebp - 0x148], eax
lea eax, [ebp - 0x13c]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
je 0x40af73
cmp dword [ebp - 0x13c], 0
mov dword [ebp - 0x138], 0x43d73c
jne 0x40af7d
mov dword [ebp - 0x138], 0x43d748
lea ebx, [ebp - 0x110]
mov dword [ebp - 4], 0
lea ecx, [ebx + 2]
lea ecx, [ecx]
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x40af90
sub ebx, ecx
sar ebx, 1
call fcn.004019c0
mov ecx, eax
test ecx, ecx
je 0x40b2b4
mov eax, dword [ecx]
call dword [eax + 0xc]
mov dword [ebp - 0x140], 1
lea esi, [eax + 0x10]
mov dword [ebp - 0x128], esi
test ebx, ebx
js 0x40b2be
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, ebx
or eax, ecx
jge 0x40aff1
push ebx
lea ecx, [ebp - 0x128]
call fcn.00409100
mov esi, dword [ebp - 0x128]
xor eax, eax
mov dword [ebp - 0x134], eax
test ebx, ebx
je 0x40b218
movzx edi, word [ebp + eax*2 - 0x110]
movzx ecx, di
mov dword [ebp - 0x130], edi
lea eax, [ecx - 8]
cmp eax, 0x54
ja case.0x40b025.11
movzx eax, byte [eax + 0x40b2e4]
jmp dword [eax*4 + 0x40b2c8]
mov eax, dword [esi - 0xc]
mov dword [ebp - 0x130], eax
lea edx, [eax + 1]
mov dword [ebp - 0x12c], edx
test edx, edx
js 0x40b2aa
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edx
or eax, ecx
jge 0x40b06f
push edx
lea ecx, [ebp - 0x128]
call fcn.00409100
mov esi, dword [ebp - 0x128]
mov edx, dword [ebp - 0x12c]
mov eax, dword [ebp - 0x130]
mov ecx, 0x5c
mov word [esi + eax*2], cx
cmp edx, dword [esi - 8]
jg 0x40b2aa
xor eax, eax
mov dword [esi - 0xc], edx
mov word [esi + edx*2], ax
mov eax, dword [esi - 0xc]
mov dword [ebp - 0x12c], eax
lea edx, [eax + 1]
mov dword [ebp - 0x130], edx
test edx, edx
js 0x40b2aa
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edx
or eax, ecx
jge 0x40b0d3
push edx
lea ecx, [ebp - 0x128]
call fcn.00409100
mov esi, dword [ebp - 0x128]
mov edx, dword [ebp - 0x130]
mov eax, dword [ebp - 0x12c]
mov word [esi + eax*2], di
cmp edx, dword [esi - 8]
jg 0x40b2aa
xor eax, eax
mov dword [esi - 0xc], edx
mov word [esi + edx*2], ax
jmp 0x40b1fd
push 2
push 0x43db70
lea ecx, [ebp - 0x128]
call fcn.00408200
mov esi, dword [ebp - 0x128]
jmp 0x40b1fd
push 2
push 0x43db78
lea ecx, [ebp - 0x128]
call fcn.00408200
mov esi, dword [ebp - 0x128]
jmp 0x40b1fd
push 2
push 0x43db80
lea ecx, [ebp - 0x128]
call fcn.00408200
mov esi, dword [ebp - 0x128]
jmp 0x40b1fd
push 2
push 0x43db88
lea ecx, [ebp - 0x128]
call fcn.00408200
mov esi, dword [ebp - 0x128]
jmp 0x40b1fd
push 2
push 0x43db90
lea ecx, [ebp - 0x128]
call fcn.00408200
mov esi, dword [ebp - 0x128]
jmp 0x40b1fd
cmp edi, 0x20
jae 0x40b1a4
push ecx
lea eax, [ebp - 0x128]
push str.u_04X
push eax
call fcn.0040c330
mov esi, dword [ebp - 0x128]
add esp, 0xc
jmp 0x40b1fd
mov eax, dword [esi - 0xc]
mov dword [ebp - 0x12c], eax
lea edi, [eax + 1]
test edi, edi
js 0x40b2aa
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x40b1db
push edi
lea ecx, [ebp - 0x128]
call fcn.00409100
mov esi, dword [ebp - 0x128]
mov ecx, dword [ebp - 0x12c]
mov eax, dword [ebp - 0x130]
mov word [esi + ecx*2], ax
cmp edi, dword [esi - 8]
jg 0x40b2aa
xor eax, eax
mov dword [esi - 0xc], edi
mov word [esi + edi*2], ax
mov eax, dword [ebp - 0x134]
inc eax
mov dword [ebp - 0x134], eax
cmp eax, ebx
jb 0x40b001
mov edi, dword [ebp - 0x144]
mov eax, dword [ebp - 0x148]
push 1
push 0x1020000
push dword [ebp - 0x138]
movzx eax, ax
push eax
push esi
push dword [ebp - 0x118]
push dword [ebp - 0x11c]
push dword [ebp - 0x120]
push dword [0x44409c]
push str._uniqueuserid_:__s___osversion_:__u._u._u_s___oslang_:__hu___cpu_:_s__version_:_d__insttype_:_d_
push 0x4440a0
call fcn.0040c4c0
add esp, 0x2c
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40b279
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
push edi
push str.debug__s
push 0x4440a4
call fcn.0040c4c0
add esp, 0xc
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004146e0
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.004093b0
push 0x80004005
call fcn.004093b0
push 0x80070057
call fcn.004093b0
hlt