Function at 0x100491e6
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10074f99
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x10c
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x1004930c
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x94], eax
mov dword [ebp - 0x54], 0x6bdc
mov dword [ebp - 0xfc], 0x100091d0
cmp dword [ebp - 0x54], 0x6d1f
jle 0x100492ae
push 0
push 0
call dword [sym.imp.KERNEL32.dll_Beep]
and dword [ebp - 0x30], 0
jmp 0x1004925a
mov eax, dword [ebp - 0x30]
inc eax
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0x391b
jge 0x100492a8
and dword [ebp - 0x34], 0
jmp 0x10049270
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0x6798
jge 0x100492a6
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x34]
sar eax, cl
cdq
mov dword [ebp - 0xe0], eax
mov dword [ebp - 0xdc], edx
push dword [ebp - 0xdc]
push dword [ebp - 0xe0]
mov ecx, 0x1061c7f8
call fcn.100221af
jmp 0x10049269
jmp 0x10049253
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
push dword [ebp - 0x94]
push dword [ebp - 0x9c]
push 1
call fcn.1004978e
add esp, 0xc
and dword [ebp - 4], 0
cmp dword [ebp - 0x54], 0x6a93
jge 0x100492e1
mov edx, dword [ebp - 0xfc]
mov ecx, 0x1061c7f8
call fcn.10024b94
jmp 0x100492fd
or dword [ebp - 4], 0xffffffff
jmp 0x10049307
jmp 0x1004977d
mov eax, dword [ebp + 0x30]
mov dword [ebp - 0xe8], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xac], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0xf0], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0xb4], eax
lea eax, [ebp + 8]
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0xf8], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0xb8], eax
mov eax, dword [ebp - 0xa4]
movzx eax, byte [eax]
test eax, eax
je 0x1004971a
mov eax, dword [ebp - 0xf0]
mov dword [ebp - 0xbc], eax
mov eax, dword [ebp - 0xac]
mov dword [ebp - 0xd8], eax
mov eax, dword [ebp - 0xe8]
mov dword [ebp - 0xc4], eax
mov eax, dword [ebp - 0xb4]
mov dword [ebp - 0xe4], eax
mov eax, dword [ebp - 0xf8]
mov dword [ebp - 0xcc], eax
mov eax, dword [ebp - 0xbc]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0xd8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc4]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0xe4]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0xcc]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
mov dword [ebp - 0x100], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x18]
mov edx, dword [edx]
add edx, dword [ecx]
cmp edx, dword [eax]
je 0x100493f3
mov dword [ebp - 0x44], 1
jmp 0x100493f7
and dword [ebp - 0x44], 0
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x18]
mov ecx, dword [ecx]
imul ecx, dword [ebp - 0x44]
cmp ecx, dword [eax]
jne 0x10049410
mov dword [ebp - 0x6c], 1
jmp 0x10049414
and dword [ebp - 0x6c], 0
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x6c]
sub edx, dword [ecx]
cmp edx, dword [eax]
jne 0x1004942c
mov dword [ebp - 0x4c], 1
jmp 0x10049430
and dword [ebp - 0x4c], 0
cmp dword [ebp - 0x4c], 0x973063d6
jbe 0x10049445
mov dword [ebp - 0x8c], 1
jmp 0x1004944c
and dword [ebp - 0x8c], 0
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
cmp dword [ebp - 0x8c], eax
jl 0x10049462
mov dword [ebp - 0x3c], 1
jmp 0x10049466
and dword [ebp - 0x3c], 0
cmp dword [ebp - 0x3c], 0
jne 0x10049475
mov dword [ebp - 0x74], 1
jmp 0x10049479
and dword [ebp - 0x74], 0
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax]
cmp dword [ebp - 0x74], eax
jle 0x1004948c
mov dword [ebp - 0x5c], 1
jmp 0x10049490
and dword [ebp - 0x5c], 0
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x5c]
jge 0x100494a6
mov dword [ebp - 0xec], 1
jmp 0x100494ad
and dword [ebp - 0xec], 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x11c], eax
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x2c]
mov ecx, dword [ecx]
sub ecx, dword [eax]
add ecx, 0x598095e7
mov eax, dword [ebp - 0x18]
cmp dword [eax], ecx
jge 0x100494db
mov dword [ebp - 0x84], 1
jmp 0x100494e2
and dword [ebp - 0x84], 0
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
cmp dword [ebp - 0x84], eax
jle 0x100494f8
mov dword [ebp - 0x38], 1
jmp 0x100494fc
and dword [ebp - 0x38], 0
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x38]
mov dword [eax], ecx
cmp dword [ebp - 0x38], 0
jne 0x10049518
mov eax, dword [ebp - 0x24]
cmp dword [eax], 0
jne 0x10049518
and dword [ebp - 0x64], 0
jmp 0x1004951f
mov dword [ebp - 0x64], 1
cmp dword [ebp - 0x64], 0xfff6
ja 0x10049531
mov dword [ebp - 0x7c], 1
jmp 0x10049535
and dword [ebp - 0x7c], 0
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x7c]
mov dword [eax], ecx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x14]
mov ecx, dword [ecx]
cmp ecx, dword [eax]
jg 0x10049552
mov dword [ebp - 0x40], 1
jmp 0x10049556
and dword [ebp - 0x40], 0
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x24]
mov ecx, dword [ecx]
add ecx, dword [ebp - 0x40]
cmp ecx, dword [eax]
jle 0x1004956e
mov dword [ebp - 0x48], 1
jmp 0x10049572
and dword [ebp - 0x48], 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
cmp dword [ebp - 0x48], eax
jl 0x10049703
mov dword [ebp - 0x20], 0xfffffffe
mov dword [ebp - 0xf4], 0xffbdd2a4
mov dword [ebp - 0x60], 4
mov dword [ebp - 0x98], 7
mov dword [ebp - 0xa0], 0xf5f1e611
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
neg eax
cmp eax, 1
jg 0x100495c4
mov dword [ebp - 0xd4], 1
jmp 0x100495cb
and dword [ebp - 0xd4], 0
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x108], eax
mov eax, dword [ebp - 0x2c]
cmp dword [eax], 0xaa48
jle 0x100495e8
mov dword [ebp - 0x50], 1
jmp 0x100495ec
and dword [ebp - 0x50], 0
cmp dword [ebp - 0x50], 0xca4d244
jle 0x100495fe
mov dword [ebp - 0x58], 1
jmp 0x10049602
and dword [ebp - 0x58], 0
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0xf4], eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
add eax, 0xb8b0e32
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x118], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x110], eax
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0x104], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x10c], eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
mov dword [ebp - 0x114], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
sub eax, 4
cmp eax, dword [ebp - 0x20]
je 0x10049662
mov dword [ebp - 0x68], 1
jmp 0x10049666
and dword [ebp - 0x68], 0
mov eax, dword [ebp - 0x20]
add eax, dword [ebp - 0x68]
cmp eax, 0xf959328d
jb 0x1004967c
mov dword [ebp - 0x70], 1
jmp 0x10049680
and dword [ebp - 0x70], 0
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
cmp dword [ebp - 0x70], eax
jg 0x10049693
mov dword [ebp - 0x78], 1
jmp 0x10049697
and dword [ebp - 0x78], 0
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x78]
jle 0x100496a8
mov dword [ebp - 0x80], 1
jmp 0x100496ac
and dword [ebp - 0x80], 0
cmp dword [ebp - 0x80], 0x2166a3c8
jge 0x100496c1
mov dword [ebp - 0x88], 1
jmp 0x100496c8
and dword [ebp - 0x88], 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
cmp dword [ebp - 0x88], eax
je 0x100496e1
mov dword [ebp - 0x90], 1
jmp 0x100496e8
and dword [ebp - 0x90], 0
mov eax, dword [ebp - 0x20]
add eax, dword [ebp - 0x90]
mov ecx, dword [ebp - 0x1c]
mov dword [ecx], eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
mov dword [ebp - 0xa0], eax
jmp 0x10049718
mov dword [ebp - 0xa8], 0x828e8bf3
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax]
mov dword [ebp - 0xa8], eax
jmp 0x1004977d
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0xc0], eax
mov eax, dword [ebp - 0xb8]
mov dword [ebp - 0xc8], eax
mov eax, dword [ebp - 0xc0]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0xc8]
mov dword [ebp - 0xd0], eax
mov eax, dword [ebp - 0x28]
mov dword [eax], 0
jmp 0x1004975d
mov eax, dword [ebp - 0x28]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0x28]
mov dword [ecx], eax
mov eax, dword [ebp - 0x28]
cmp dword [eax], 2
jge 0x1004977d
mov eax, dword [ebp - 0x28]
push dword [eax]
mov ecx, dword [ebp - 0xd0]
call fcn.1002246c
mov dword [eax], 0xffff
jmp 0x10049752
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret