Function at 0x1040a20
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xa
push 0
push 0
dec ecx
jne 0x1040a28
push ecx
push ebx
push esi
test dl, dl
je 0x1040a3e
add esp, 0xfffffff0
call fcn.01003bf8
mov byte [ebp - 5], dl
mov ebx, eax
xor eax, eax
push ebp
push 0x1040c6f
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, dword [fcn.01055ae0]
mov esi, dword [esi]
lea edx, [ebp - 0x2c]
mov eax, 0x1040ca4
call esi
mov eax, dword [ebp - 0x2c]
call fcn.01009fe8
mov byte [ebx + 0x13], al
cmp byte [ebx + 0x13], 0
jne 0x1040a86
call fcn.0101c3ac
mov byte [ebx + 0x11], al
cmp byte [ebx + 0x11], 0
jne 0x1040c44
lea edx, [ebp - 0x30]
mov eax, 0x1c
call fcn.0101b044
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 4]
call fcn.010093b8
lea edx, [ebp - 0x34]
mov eax, dword [ebp - 4]
call fcn.0101baf8
mov eax, dword [ebp - 0x34]
push eax
lea edx, [ebp - 0x40]
xor eax, eax
call fcn.01003268
mov eax, dword [ebp - 0x40]
lea edx, [ebp - 0x3c]
call fcn.01008f6c
mov eax, dword [ebp - 0x3c]
lea edx, [ebp - 0x38]
call fcn.0101baf8
mov eax, dword [ebp - 0x38]
pop edx
call fcn.010095ac
xor al, 1
mov byte [ebx + 0xe], al
cmp byte [ebx + 0xe], 0
jne 0x1040c44
mov byte [ebx + 4], 1
mov byte [ebx + 6], 1
mov eax, ebx
call fcn.01041618
mov eax, ebx
call fcn.01041410
test al, al
jne 0x1040b44
lea edx, [ebp - 0x44]
xor eax, eax
call fcn.01003268
mov eax, dword [ebp - 0x44]
lea edx, [ebp - 0x16]
call fcn.0101b8f8
lea eax, [ebp - 0x26]
push eax
call sub.kernel32.dll_GetLocalTime
lea eax, [ebp - 0x26]
call fcn.010094bc
push eax
lea eax, [ebp - 0x16]
call fcn.010094bc
mov edx, eax
pop eax
sub eax, edx
cmp eax, 7
seta dl
mov byte [ebx + 0xf], dl
test dl, dl
jne 0x1040c44
mov dword [ebx + 0x68], 0x124
mov esi, dword [fcn.01055ae0]
mov esi, dword [esi]
lea edx, [ebp - 0x48]
mov eax, 0x1040cc0
call esi
mov edx, dword [ebp - 0x48]
lea eax, [ebx + 0x70]
call fcn.010053b4
mov eax, ebx
call fcn.0104156c
test al, al
jne 0x1040b93
lea eax, [ebx + 0x3c]
mov edx, dword [0x105707c]
mov edx, dword [edx]
call fcn.010053b4
lea eax, [ebx + 0x40]
mov edx, dword [0x105707c]
mov edx, dword [edx]
call fcn.010053b4
mov esi, dword [fcn.01055ae0]
mov esi, dword [esi]
lea edx, [ebp - 0x4c]
mov eax, 0x1040d00
call esi
mov eax, dword [ebp - 0x4c]
call fcn.01009fe8
mov byte [ebx + 0xd], al
lea eax, [ebp - 4]
call fcn.0101b700
mov byte [ebp - 6], 0
mov eax, dword [ebp - 4]
test eax, eax
je 0x1040bd9
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x1040bd9
lea eax, [ebp - 4]
mov edx, dword [ebp - 4]
call fcn.01004b30
test eax, eax
je 0x1040be2
sub eax, 4
mov eax, dword [eax]
test eax, eax
jle 0x1040bfa
mov edx, 1
mov ecx, dword [ebp - 4]
movzx ecx, byte [ecx + edx*2 - 2]
add byte [ebp - 6], cl
inc edx
dec eax
jne 0x1040beb
movzx eax, byte [ebp - 6]
sub eax, 0
mov edx, eax
shl eax, 4
sub eax, edx
mov dword [ebp - 0x50], eax
fild dword [ebp - 0x50]
fdiv dword [0x1040d08]
fadd dword [0x1040d0c]
call fcn.01003334
mov dword [ebx + 0x38], eax
mov eax, dword [0x1057078]
mov eax, dword [eax]
or edx, 0xffffffff
call fcn.0103c4a8
lea eax, [ebp - 0x54]
call fcn.0101cfdc
mov edx, dword [ebp - 0x54]
lea eax, [ebx + 0x48]
call fcn.010053b4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1040c76
lea eax, [ebp - 0x54]
call fcn.010053a4
lea eax, [ebp - 0x4c]
mov edx, 9
call fcn.010053ac
lea eax, [ebp - 4]
call fcn.010053a4
ret