Function at 0x40ad20
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x448f5f
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x45e4b8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov word [edi], ax
mov dword [ebp - 4], eax
mov dword [edi + 0x2c], 7
mov dword [edi + 0x28], eax
mov word [edi + 0x18], ax
xor ecx, ecx
mov dword [edi + 0x44], 7
mov dword [edi + 0x40], eax
mov word [edi + 0x30], cx
mov dword [edi + 0x5c], 7
mov dword [edi + 0x58], ecx
mov word [edi + 0x48], ax
mov dword [edi + 0x74], 7
mov dword [edi + 0x70], ecx
mov word [edi + 0x60], ax
mov dword [edi + 0x8c], 7
mov dword [edi + 0x88], ecx
mov word [edi + 0x78], ax
mov dword [edi + 0xb4], 7
mov dword [edi + 0xb0], ecx
mov word [edi + 0xa0], ax
lea esi, [edi + 0xbc]
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ecx
mov word [esi], ax
mov dword [edi + 0xe8], 7
mov dword [edi + 0xe4], ecx
mov word [edi + 0xd4], ax
mov dword [edi + 0x100], 7
mov dword [edi + 0xfc], ecx
mov word [edi + 0xec], cx
lea ebx, [edi + 0x104]
mov dword [ebx + 0x14], 7
mov dword [ebx + 0x10], ecx
mov word [ebx], ax
mov byte [ebp - 4], 0xa
mov dword [edi + 0x11c], ecx
mov dword [edi + 0x120], ecx
call fcn.0040c200
mov dword [edi + 0x11c], eax
mov byte [ebp - 4], 0xb
mov dword [edi + 0x124], 0
mov dword [edi + 0x128], 0
call fcn.0040c200
mov dword [edi + 0x124], eax
xor eax, eax
mov dword [edi + 0x140], 7
mov dword [edi + 0x13c], 0
mov word [edi + 0x12c], ax
mov eax, dword [ebp + 8]
lea ecx, [edi + 0x30]
mov byte [ebp - 4], 0xd
cmp ecx, eax
je 0x40ae8f
push 0xffffffffffffffff
push 0
push eax
call fcn.00401f30
mov eax, dword [ebp + 0xc]
lea ecx, [edi + 0xec]
cmp ecx, eax
je 0x40aea6
push 0xffffffffffffffff
push 0
push eax
call fcn.00401f30
lea ecx, [ebp - 0x28]
call fcn.00418e80
mov ecx, eax
lea eax, [edi + 0x12c]
mov dword [ebp + 8], ecx
cmp eax, ecx
je 0x40aef1
cmp dword [eax + 0x14], 8
jb 0x40aed6
push dword [eax]
call fcn.00429834
mov ecx, dword [ebp + 8]
lea eax, [edi + 0x12c]
add esp, 4
xor edx, edx
mov dword [eax + 0x14], 7
push ecx
mov dword [eax + 0x10], 0
mov ecx, eax
mov word [eax], dx
call fcn.00401ed0
cmp dword [ebp - 0x14], 8
jb 0x40af02
push dword [ebp - 0x28]
call fcn.00429834
add esp, 4
lea ecx, [ebp - 0x28]
call fcn.00418d70
mov dword [ebp + 8], eax
cmp edi, eax
je 0x40af3f
cmp dword [edi + 0x14], 8
jb 0x40af24
push dword [edi]
call fcn.00429834
mov eax, dword [ebp + 8]
add esp, 4
xor ecx, ecx
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov word [edi], cx
mov ecx, edi
push eax
call fcn.00401ed0
cmp dword [ebp - 0x14], 8
jb 0x40af50
push dword [ebp - 0x28]
call fcn.00429834
add esp, 4
lea ecx, [ebp - 0x28]
call fcn.00418ce0
mov dword [ebp + 8], eax
cmp ebx, eax
je 0x40af8d
cmp dword [ebx + 0x14], 8
jb 0x40af72
push dword [ebx]
call fcn.00429834
mov eax, dword [ebp + 8]
add esp, 4
xor ecx, ecx
mov dword [ebx + 0x14], 7
mov dword [ebx + 0x10], 0
mov word [ebx], cx
mov ecx, ebx
push eax
call fcn.00401ed0
cmp dword [ebp - 0x14], 8
jb 0x40af9e
push dword [ebp - 0x28]
call fcn.00429834
add esp, 4
lea ecx, [ebp - 0x28]
call fcn.00418a90
mov ebx, eax
cmp esi, ebx
je 0x40afd7
cmp dword [esi + 0x14], 8
jb 0x40afbc
push dword [esi]
call fcn.00429834
add esp, 4
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov ecx, esi
push ebx
mov word [esi], ax
call fcn.00401ed0
cmp dword [ebp - 0x14], 8
jb 0x40afe8
push dword [ebp - 0x28]
call fcn.00429834
add esp, 4
lea ecx, [ebp - 0x28]
call fcn.00418b40
lea ebx, [edi + 0xd4]
mov dword [ebp + 8], eax
cmp ebx, eax
je 0x40b02b
cmp dword [ebx + 0x14], 8
jb 0x40b010
push dword [ebx]
call fcn.00429834
mov eax, dword [ebp + 8]
add esp, 4
xor ecx, ecx
mov dword [ebx + 0x14], 7
mov dword [ebx + 0x10], 0
mov word [ebx], cx
mov ecx, ebx
push eax
call fcn.00401ed0
cmp dword [ebp - 0x14], 8
jb 0x40b03c
push dword [ebp - 0x28]
call fcn.00429834
add esp, 4
lea ecx, [ebp - 0x28]
call fcn.004188f0
lea ebx, [edi + 0xa0]
mov dword [ebp + 8], eax
cmp ebx, eax
je 0x40b07f
cmp dword [ebx + 0x14], 8
jb 0x40b064
push dword [ebx]
call fcn.00429834
mov eax, dword [ebp + 8]
add esp, 4
xor ecx, ecx
mov dword [ebx + 0x14], 7
mov dword [ebx + 0x10], 0
mov word [ebx], cx
mov ecx, ebx
push eax
call fcn.00401ed0
cmp dword [ebp - 0x14], 8
jb 0x40b090
push dword [ebp - 0x28]
call fcn.00429834
add esp, 4
lea ecx, [ebp - 0x28]
call fcn.00418df0
lea ebx, [edi + 0x18]
mov dword [ebp + 8], eax
cmp ebx, eax
je 0x40b0d0
cmp dword [ebx + 0x14], 8
jb 0x40b0b5
push dword [ebx]
call fcn.00429834
mov eax, dword [ebp + 8]
add esp, 4
xor ecx, ecx
mov dword [ebx + 0x14], 7
mov dword [ebx + 0x10], 0
mov word [ebx], cx
mov ecx, ebx
push eax
call fcn.00401ed0
cmp dword [ebp - 0x14], 8
jb 0x40b0e1
push dword [ebp - 0x28]
call fcn.00429834
add esp, 4
call fcn.00419d00
mov dword [edi + 0xb8], eax
mov dword [edi + 0x94], 4
mov dword [edi + 0x98], 0
mov dword [edi + 0x9c], 0
cmp dword [esi + 0x14], 8
jb 0x40b112
mov esi, dword [esi]
mov eax, 0x453480
mov cx, word [esi]
cmp cx, word [eax]
jne 0x40b13d
test cx, cx
je 0x40b139
mov cx, word [esi + 2]
cmp cx, word [eax + 2]
jne 0x40b13d
add esi, 4
add eax, 4
test cx, cx
jne 0x40b117
xor eax, eax
jmp 0x40b142
sbb eax, eax
or eax, 1
test eax, eax
mov dword [ebp - 0x2c], 7
mov edx, 0x453488
mov dword [ebp - 0x30], 0
mov ecx, 0x453490
cmovne edx, ecx
xor eax, eax
mov word [ebp - 0x40], ax
cmp word [edx], ax
jne 0x40b16e
xor ecx, ecx
jmp 0x40b182
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40b173
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x40]
call fcn.00402490
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x28]
push 6
xor eax, eax
mov dword [ebp - 0x14], 7
push str.osbits
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.00402490
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0xf
push eax
lea ecx, [edi + 0x124]
call fcn.0040bbb0
lea ecx, [ebp - 0x40]
cmp eax, ecx
je 0x40b1d9
push 0xffffffffffffffff
push 0
push ecx
mov ecx, eax
call fcn.00401f30
cmp dword [ebp - 0x14], 8
jb 0x40b1ea
push dword [ebp - 0x28]
call fcn.00429834
add esp, 4
xor eax, eax
mov dword [ebp - 0x14], 7
cmp dword [ebp - 0x2c], 8
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
jb 0x40b20f
push dword [ebp - 0x40]
call fcn.00429834
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8