Function at 0x4104ec
Capabilities:
Identify system language via api

Disassembly:
mov eax, 0x4156d0
call fcn.00414a90
sub esp, 0x870
push ebx
push esi
push edi
mov esi, 0x80
xor ebx, ebx
push esi
lea ecx, [ebp + 8]
mov dword [ebp - 4], ebx
call fcn.004032b4
mov edi, eax
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x10]
call fcn.00402edf
lea eax, [ebp + 8]
lea ecx, [ebp - 0x18]
push eax
mov byte [ebp - 4], 1
call fcn.00402edf
push esi
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.004032b4
mov ecx, dword [0x419068]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x14], ecx
mov cx, word [edi]
xor edx, edx
cmp cx, bx
mov byte [ebp - 4], 3
je 0x4105c4
push 0x3a
pop esi
cmp cx, 0x39
ja 0x4105ba
cmp cx, 0x30
jb 0x4105ba
cmp dword [ebp + 0x14], 1
push 2
mov word [eax], cx
pop ecx
jne 0x41058d
add eax, ecx
cmp edx, 1
jne 0x410588
mov word [eax], 0x2d
add eax, ecx
jmp 0x4105b9
cmp edx, 3
jmp 0x410597
add eax, ecx
cmp edx, 3
je 0x41057f
cmp edx, 5
je 0x41057f
cmp edx, 7
jne 0x4105a5
mov word [eax], 0x20
jmp 0x410584
cmp edx, 9
je 0x4105af
cmp edx, 0xb
jne 0x4105b4
mov word [eax], si
jmp 0x410584
cmp edx, 0xd
je 0x4105c4
inc edx
inc edi
inc edi
mov cx, word [edi]
cmp cx, bx
jne 0x410560
mov word [eax], bx
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
lea ecx, [ebp - 0x3c]
mov edi, eax
call fcn.00414796
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 4
call fcn.00414796
mov esi, 0x409
lea ecx, [ebp - 0x3c]
push esi
push ebx
push dword [ebp - 0x1c]
mov byte [ebp - 4], 5
call fcn.00414a0a
test eax, eax
je 0x41064c
mov esi, dword [ebp + 0xc]
lea ecx, [ebp - 0x3c]
push esi
call fcn.0041499c
mov eax, dword [0x425320]
mov ecx, 0x1ff
mov dword [ebp - 0x87c], eax
xor eax, eax
lea edi, [ebp - 0x878]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x87c]
push eax
lea eax, [ebp + 0xc]
sub esp, 0x10
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push eax
movsd dword es:[edi], dword [esi]
call fcn.00408637
add esp, 0x18
lea ecx, [ebp + 0xc]
call fcn.00402f28
jmp 0x410785
movzx eax, di
mov edi, dword [ebp - 0x1c]
push eax
push ebx
push edi
lea ecx, [ebp - 0x54]
call fcn.00414a0a
test eax, eax
je 0x4106a8
mov esi, dword [ebp + 0xc]
lea ecx, [ebp - 0x54]
push esi
call fcn.0041499c
mov eax, dword [0x425320]
mov ecx, 0x1ff
mov dword [ebp - 0x87c], eax
xor eax, eax
lea edi, [ebp - 0x878]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x87c]
push eax
lea eax, [ebp + 0xc]
sub esp, 0x10
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push eax
movsd dword es:[edi], dword [esi]
call fcn.00408637
add esp, 0x18
lea ecx, [ebp + 0xc]
jmp 0x410642
lea ecx, [ebp - 0x6c]
mov word [edi + 0x14], bx
call fcn.00414796
push esi
push ebx
push edi
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 6
call fcn.00414a0a
test eax, eax
je 0x410736
mov esi, dword [ebp + 0xc]
lea ecx, [ebp - 0x6c]
push esi
call fcn.0041499c
mov eax, dword [ebp + 0x10]
lea edi, [ebp - 0x878]
mov cx, word [eax + 0xa]
mov word [esi + 0xa], cx
mov cx, word [eax + 8]
mov word [esi + 8], cx
mov cx, word [eax + 0xc]
mov word [esi + 0xc], cx
mov ax, word [eax + 0xe]
mov word [esi + 0xe], ax
mov eax, dword [0x425320]
mov dword [ebp - 0x87c], eax
mov ecx, 0x1ff
xor eax, eax
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x87c]
push eax
lea eax, [ebp + 0xc]
sub esp, 0x10
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push eax
movsd dword es:[edi], dword [esi]
call fcn.00408637
add esp, 0x18
lea ecx, [ebp + 0xc]
call fcn.00402f28
jmp 0x410779
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x24]
push eax
push ecx
lea eax, [ebp + 8]
mov ecx, esp
mov dword [ebp + 0x14], esp
push eax
call fcn.00402edf
call fcn.00410431
add esp, 0xc
cmp eax, ebx
je 0x4107d1
lea eax, [ebp - 0x7c]
push eax
push dword [ebp - 0x20]
push dword [ebp - 0x24]
call fcn.004103fa
add esp, 0xc
test eax, eax
je 0x4107d1
mov edi, dword [ebp + 0xc]
lea esi, [ebp - 0x7c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 5
call fcn.004147c2
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 4
call fcn.004147c2
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 3
call fcn.004147c2
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.00402f28
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.00402f28
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.00402f28
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00402f28
push 1
pop eax
jmp 0x410826
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 5
call fcn.004147c2
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 4
call fcn.004147c2
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 3
call fcn.004147c2
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.00402f28
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.00402f28
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.00402f28
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00402f28
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret