Function at 0x40ae24
Capabilities:
Identify system language via api

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x7c
push ebx
push esi
mov esi, dword [0x414150]
push edi
xor edi, edi
cmp esi, edi
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x70], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x68], edi
mov dword [ebp - 0x60], esi
je 0x40b341
cmp dword [0x414154], edi
je 0x40b341
lea eax, [ebp - 0x4c]
push eax
add ecx, 4
push ecx
mov dword [ebp - 0x4c], edi
call dword [sym.imp.ole32.dll_StringFromCLSID]
push dword [ebp - 0x4c]
xor ebx, ebx
push 0x403748
push 3
lea eax, [ebp - 0x64]
push 6
inc ebx
push eax
mov dword [ebp - 0x64], ebx
call fcn.0040d007
add esp, 0x14
push dword [ebp - 0x4c]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [esi]
lea ecx, [ebp - 0x5c]
push ecx
lea ecx, [ebp - 4]
push ecx
push dword [ebp + 8]
push esi
call dword [eax + 0x1c]
push eax
push dword [ebp - 4]
mov dword [ebp - 8], eax
push dword [ebp + 8]
lea eax, [ebp - 0x64]
push 0x4036e0
push 3
push 6
push eax
mov dword [ebp - 0x64], ebx
call fcn.0040d007
add esp, 0x1c
cmp dword [ebp - 8], edi
jl 0x40af8e
mov eax, dword [ebp - 4]
cmp eax, edi
je 0x40af8e
mov dword [ebp - 0x6c], eax
shl eax, 2
push eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
imul eax, eax, 0x150
push eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
mov eax, dword [ebp - 4]
lea eax, [eax + eax*8]
shl eax, 2
push eax
mov dword [ebp - 0x58], ebx
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
add esp, 0xc
cmp dword [ebp - 0xc], edi
mov esi, eax
mov dword [ebp - 0x70], esi
je 0x40b31e
cmp ebx, edi
je 0x40b31e
cmp esi, edi
je 0x40b31e
mov ecx, dword [ebp - 4]
mov edi, dword [ebp - 0xc]
xor eax, eax
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
push esi
push ebx
movzx edi, ax
mov eax, dword [ebp - 0x60]
mov ecx, dword [eax]
push edi
push dword [ebp - 0x5c]
push dword [ebp - 4]
push 0
push 0xf80
push eax
call dword [ecx + 0x20]
test eax, eax
mov dword [ebp - 8], eax
jge 0x40afd4
and dword [ebp + 8], 0
push edi
push dword [ebp - 4]
push eax
push 0x403668
push 1
lea eax, [ebp + 8]
push 6
push eax
call fcn.0040d007
add esp, 0x1c
xor edi, edi
push dword [ebp - 0x54]
call fcn.0040d41d
cmp dword [ebp - 8], edi
pop ecx
lea eax, [ebp + 8]
jl 0x40b365
push dword [ebp - 4]
mov dword [ebp + 8], 1
push 0x403620
push 3
push 6
push eax
call fcn.0040d007
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0xc]
add esp, 0x14
mov dword [eax], ecx
jmp 0x40b3ae
call fcn.00406078
xor eax, eax
cmp dword [ebp - 4], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 8], eax
jbe 0x40b2cd
lea eax, [ebx + 4]
mov dword [ebp - 0x40], eax
lea eax, [esi + 0x1c]
mov dword [ebp - 0x10], eax
lea eax, [ebx + 0xa4]
mov dword [ebp - 0x3c], eax
lea eax, [ebx + 0x80]
mov dword [ebp - 0x38], eax
lea eax, [ebx + 0x88]
mov dword [ebp - 0x34], eax
lea eax, [ebx + 0x60]
mov dword [ebp - 0x30], eax
lea eax, [ebx + 0xe0]
mov dword [ebp - 0x18], eax
lea eax, [ebx + 0xac]
mov dword [ebp - 0x2c], eax
lea eax, [ebx + 0x78]
mov dword [ebp - 0x14], eax
lea eax, [ebx + 0xf8]
xor edi, edi
inc edi
add esi, 8
mov dword [ebp - 0x28], eax
lea eax, [ebx + 0xf4]
add ebx, 0xf0
mov dword [ebp - 0x20], ebx
mov dword [ebp + 8], edi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x24], eax
mov ebx, 0x150
cmp dword [ebp - 8], 0
jl 0x40b2cd
cmp dword [0x414180], 0
je 0x40b076
mov eax, dword [ebp - 0x14]
mov dword [eax], edi
mov eax, dword [ebp - 0x20]
cmp dword [eax], edi
jae 0x40b08f
push dword [ebp + 8]
and dword [ebp - 0x64], 0
push 0x4035b8
push edi
jmp 0x40b284
mov eax, dword [ebp - 0x24]
mov esi, dword [eax]
push dword [esi + 4]
and dword [ebp - 0x48], 0
call fcn.0040e2a4
test eax, eax
mov dword [ebp - 0x50], eax
je 0x40b250
push dword [esi + 8]
call fcn.0040e2a4
test eax, eax
mov dword [ebp - 0x48], eax
je 0x40b250
and dword [ebp - 0x64], 0
cmp dword [esi + 0x28], 0
jbe 0x40b0f9
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x40b0f9
mov eax, dword [eax]
test eax, eax
je 0x40b0f9
push eax
call fcn.0040e2a4
test eax, eax
mov dword [ebp - 0x64], eax
jne 0x40b0f9
push dword [ebp - 0x50]
call fcn.0040d41d
push dword [ebp - 0x48]
call fcn.0040d41d
pop ecx
pop ecx
jmp 0x40b26e
push dword [ebp - 4]
lea eax, [ebp - 0x60]
push dword [ebp + 8]
mov dword [ebp - 0x60], edi
push 0x403578
push 4
push 6
push eax
call fcn.0040d007
push dword [esi + 4]
lea eax, [ebp - 0x60]
push 0x40355c
push 4
push 6
push eax
mov dword [ebp - 0x60], edi
call fcn.0040d007
mov ecx, dword [ebp - 0x28]
xor eax, eax
xor esi, esi
add esp, 0x2c
cmp dword [ecx], esi
setne al
cmp eax, esi
mov dword [ebp - 0x60], eax
je 0x40b160
mov eax, dword [ebp - 0x14]
cmp dword [eax], edi
jne 0x40b150
mov eax, dword [ebp - 0x2c]
cmp dword [eax], esi
je 0x40b160
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x54]
push eax
push dword [ebp - 0x18]
call fcn.0040617d
mov eax, dword [ebp - 0x10]
fldz
cmp dword [eax], esi
fstp qword [ebp - 0x7c]
je 0x40b19d
lea eax, [ebp - 0x7c]
push eax
push dword [ebp - 0x1c]
call fcn.004097bb
cmp eax, esi
mov dword [ebp - 8], eax
jge 0x40b19d
push eax
push 0x4034e8
push 2
lea eax, [ebp - 0x64]
push 6
push eax
mov dword [ebp - 0x64], edi
call fcn.0040d007
add esp, 0x14
jmp 0x40b2c1
push 0x80
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, esi
pop ecx
je 0x40b20d
mov edx, dword [ebp - 0x30]
fld qword [ebp - 0x7c]
sub esp, 0x10
mov esi, dword [ebp - 0x18]
xor ecx, ecx
cmp dword [edx], ecx
mov edi, esp
push dword [ebp - 0x60]
setne cl
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push ecx
mov ecx, dword [ebp - 0x34]
push dword [ecx + 4]
movsd dword es:[edi], dword [esi]
push dword [ecx]
mov ecx, dword [ebp - 0x38]
push dword [ecx + 4]
movsd dword es:[edi], dword [esi]
push dword [ecx]
mov ecx, dword [ebp - 0x3c]
push dword [ecx]
mov esi, dword [ebp - 0x40]
push dword [ebp - 0x64]
push ecx
push ecx
mov ecx, dword [ebp - 0x10]
fstp qword [esp]
push dword [ecx]
push dword [ebp - 0x48]
push dword [ebp - 0x50]
sub esp, 0x14
push 5
pop ecx
mov edi, esp
push dword [ebp - 0x74]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
call fcn.0040acf6
xor edi, edi
inc edi
jmp 0x40b20f
xor eax, eax
test eax, eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x4c]
mov dword [ecx + edx*4], eax
je 0x40b26e
inc dword [ebp - 0x44]
add dword [ebp - 0x1c], 0x24
add dword [ebp - 0x10], 0x24
add dword [ebp - 0x20], ebx
add dword [ebp - 0x24], ebx
add dword [ebp - 0x28], ebx
add dword [ebp - 0x14], ebx
add dword [ebp - 0x2c], ebx
add dword [ebp - 0x18], ebx
add dword [ebp - 0x30], ebx
add dword [ebp - 0x34], ebx
add dword [ebp - 0x38], ebx
add dword [ebp - 0x3c], ebx
add dword [ebp - 0x40], ebx
inc dword [ebp + 8]
inc dword [ebp - 0x4c]
jmp 0x40b2c1
push dword [ebp - 0x50]
call fcn.0040d41d
push dword [ebp - 0x48]
call fcn.0040d41d
cmp dword [esi + 4], 0
pop ecx
pop ecx
je 0x40b277
cmp dword [esi + 8], 0
je 0x40b277
mov dword [ebp - 8], 0x8007000e
jmp 0x40b2c1
push dword [ebp + 8]
mov dword [ebp - 0x64], edi
push 0x403478
push 2
lea eax, [ebp - 0x64]
push 6
push eax
call fcn.0040d007
add dword [ebp - 0x40], ebx
add dword [ebp - 0x3c], ebx
add dword [ebp - 0x38], ebx
add dword [ebp - 0x34], ebx
add dword [ebp - 0x30], ebx
add dword [ebp - 0x18], ebx
add dword [ebp - 0x2c], ebx
add dword [ebp - 0x14], ebx
add dword [ebp - 0x28], ebx
add dword [ebp - 0x24], ebx
add dword [ebp - 0x20], ebx
add dword [ebp - 0x10], 0x24
add dword [ebp - 0x1c], 0x24
add esp, 0x14
inc dword [ebp - 0x44]
inc dword [ebp + 8]
mov eax, dword [ebp - 0x44]
cmp eax, dword [ebp - 4]
jb 0x40b05e
mov eax, dword [ebp - 0x4c]
xor esi, esi
cmp eax, esi
mov dword [ebp - 4], eax
jne 0x40b2e5
push dword [ebp - 0xc]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
mov dword [ebp - 0xc], esi
cmp dword [ebp - 4], esi
jbe 0x40af8c
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + esi*4]
cmp dword [eax + 0x6c], 0
je 0x40b313
push dword [ebp - 0x68]
lea edi, [eax + 0x70]
push dword [ebp - 0x54]
push edi
call fcn.00406098
test eax, eax
jne 0x40b313
push edi
call fcn.00406201
inc esi
cmp esi, dword [ebp - 4]
jb 0x40b2ee
jmp 0x40af8c
push dword [ebp - 0xc]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
push ebx
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
push esi
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
add esp, 0xc
mov dword [ebp - 8], 0x8007000e
jmp 0x40af8e
push 0x4033d0
push 1
lea eax, [ebp + 8]
push 6
push eax
mov dword [ebp + 8], edi
call fcn.0040d007
add esp, 0x10
mov dword [ebp - 8], 0x80243fff
jmp 0x40af8e
push dword [ebp - 8]
mov dword [ebp + 8], edi
push 0x40338c
push 1
push 6
push eax
call fcn.0040d007
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp - 0xc]
mov dword [eax], edi
mov eax, dword [ebp + 0x10]
add esp, 0x14
cmp ebx, edi
mov dword [eax], edi
je 0x40b3ae
xor esi, esi
cmp dword [ebp - 4], edi
jbe 0x40b3a7
mov ecx, dword [ebx + esi*4]
cmp ecx, edi
je 0x40b3a1
call fcn.00409f91
inc esi
cmp esi, dword [ebp - 4]
jb 0x40b395
push ebx
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
push edi
push 0xfaf
push dword [ebp - 0x6c]
push dword [ebp - 0x58]
call fcn.0040bfbd
push dword [ebp - 0x58]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x70]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
pop ecx
push dword [ebp - 0x5c]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 0xc