Function at 0x417460
Capabilities:
Identify system language via api

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59445e
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x190
mov eax, dword [0x5de00c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebx + 8]
mov edi, dword [ebx + 0xc]
mov esi, dword [ebx + 0x10]
mov dword [ebp - 0xf4], eax
mov dword [ebp - 0xfc], edi
mov dword [ebp - 0x100], esi
call dword [sym.imp.VCOMP140.DLL_omp_get_max_threads]
mov ecx, eax
cmp ecx, 3
jle 0x4174d9
mov eax, 0x55555556
imul ecx
mov eax, edx
shr eax, 0x1f
add eax, edx
jmp 0x4174de
mov eax, 1
push eax
call dword [sym.imp.VCOMP140.DLL_omp_set_num_threads]
add esp, 4
call fcn.00419060
call fcn.004193f0
xorps xmm0, xmm0
mov dword [ebp - 0x84], 0
xor eax, eax
mov dword [ebp - 0x80], 7
movups xmmword [ebp - 0x94], xmm0
mov word [ebp - 0x94], ax
lea ecx, [ebp - 0xf0]
mov dword [ebp - 4], eax
call fcn.0041b700
cmp dword [ebp - 0xa4], 0
je 0x4176c6
call fcn.004de3e0
test eax, eax
je 0x4176c6
mov dword [esi], 1
mov edx, 0x5def60
cmp dword [0x5def74], 8
xorps xmm0, xmm0
movups xmmword [ebp - 0x2c], xmm0
cmovae edx, dword [0x5def60]
mov ecx, edx
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x417571
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x2c]
call fcn.00403d10
mov byte [ebp - 4], 1
mov esi, 0x5deff0
cmp dword [0x5df004], 8
mov eax, SysReAllocString
mov ecx, dword [ebp - 0x1c]
cmovae esi, dword [0x5deff0]
sub eax, ecx
cmp eax, 8
jb 0x417c7d
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
push 8
cmovae eax, dword [ebp - 0x2c]
push str.Resume.
push ecx
push eax
push ecx
push dword [ebp - 0xf4]
lea ecx, [ebp - 0x44]
call fcn.00403e90
push esi
lea edx, [ebp - 0x44]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x5c]
call fcn.00408550
mov esi, eax
add esp, 4
lea eax, [ebp - 0x2c]
cmp eax, esi
je 0x417653
mov ecx, dword [ebp - 0x18]
cmp ecx, 8
jb 0x41762f
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x417625
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x417625
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0052d747
add esp, 8
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [ebp - 0x2c], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x1c], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
lea ecx, [ebp - 0x5c]
call fcn.00403990
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 1
call fcn.00403990
mov ecx, dword [ebp - 0x100]
lea eax, [ebp - 0x2c]
add ecx, 0x24
cmp ecx, eax
je 0x417688
cmp dword [ebp - 0x18], 8
push dword [ebp - 0x1c]
cmovae eax, dword [ebp - 0x2c]
push eax
call fcn.004039f0
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x18]
cmp ecx, 8
jb 0x4176c6
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4176bc
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x417c4b
push ecx
push edx
call fcn.0052d747
add esp, 8
push edi
call dword [sym.imp.USER32.dll_GetDC]
cmp dword [0x5e460c], 0
mov dword [ebp - 0xf8], eax
jne 0x417705
push 1
call fcn.0052d778
add esp, 4
mov esi, eax
mov dword [ebp - 0x104], esi
push dword [ebp - 0xf8]
call fcn.00437760
mov eax, dword [ebp - 0xf8]
mov dword [0x5e460c], esi
push eax
push edi
call dword [sym.imp.USER32.dll_ReleaseDC]
push edi
mov ecx, 0x5dfc40
call fcn.00416ad0
mov esi, eax
test esi, esi
je 0x41781a
push ecx
lea ecx, [ebp - 0x1a0]
call fcn.00419cb0
push esi
lea ecx, [ebp - 0x1a0]
mov byte [ebp - 4], 3
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___int_]
lea eax, [ebp - 0x74]
push eax
lea ecx, [ebp - 0x1a0]
call fcn.00419bc0
push eax
mov edx, str.Direct3D_Initialize_failed__
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x5c]
call fcn.0041a090
add esp, 4
push 0x5bd5f8
mov edx, eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x44]
call fcn.00408550
add esp, 4
lea ecx, [ebp - 0x5c]
call fcn.00403990
lea ecx, [ebp - 0x74]
call fcn.00403990
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
push 0x10
cmovae eax, dword [ebp - 0x44]
push str.error
push eax
push edi
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, dword [0x5e460c]
test eax, eax
je 0x4177b7
push 1
push eax
call fcn.0052d747
add esp, 8
lea ecx, [ebp - 0x44]
mov dword [0x5e460c], 0
call fcn.00403990
mov eax, dword [ebp - 0x1a0]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.virtual_0], vtable.std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov eax, dword [ebp - 0x1a0]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ebp + ecx - 0x1a4], eax
lea ecx, [ebp - 0x19c]
call fcn.004052a0
lea ecx, [ebp - 0x198]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::destructor_void_]
lea ecx, [ebp - 0x150]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::destructor_void_]
xor esi, esi
jmp 0x417c1c
push 0x3c
call fcn.0052d778
mov edi, eax
add esp, 4
mov dword [ebp - 0x104], edi
mov byte [ebp - 4], 6
push 0x14
mov dword [edi], 0
mov dword [edi + 4], 0
call fcn.0052d778
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [edi], eax
lea esi, [edi + 8]
mov byte [ebp - 4], 7
push 0x2c
mov dword [ebp - 0xf8], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0052d778
add esp, 4
lea ecx, [edi + 0x10]
mov dword [eax], eax
push dword [ebp - 0xfc]
mov dword [eax + 4], eax
push dword [ebp - 0xf4]
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
call fcn.004f50b0
mov dword [edi + 0x14], 0
push 0x5c1578
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
call dword [sym.imp.USER32.dll_RegisterWindowMessageW]
mov byte [ebp - 4], 0
cmp dword [0x5e4654], 0
mov esi, dword [0x5e457c]
mov dword [edi + 0x18], eax
mov dword [0x5dfc40], edi
jne 0x4178d8
mov dword [0x5e4654], edi
push 0
push fcn.004a50f0
push dword [esi]
call fcn.00531dd0
add esp, 0xc
push str.print
push dword [esi]
call fcn.00532420
push fcn.004a50f0
push dword [esi]
call fcn.00531380
mov esi, dword [0x5dfea0]
push 0x1ec0
call fcn.0052d778
add esp, 0x14
mov dword [ebp - 0x104], eax
push esi
push 0x5e45c0
push dword [ebp - 0x100]
mov byte [ebp - 4], 8
mov ecx, eax
push dword [0x5e457c]
mov edi, dword [ebp - 0xfc]
push 0x5dfe78
push dword [0x5dfcdc]
push edi
push dword [ebp - 0xf4]
call fcn.0046ceb0
mov esi, eax
mov byte [ebp - 4], 0
mov dword [ebp - 0xf8], esi
cmp dword [esi + 0x24], 0
je 0x4179aa
mov ecx, dword [0x5e460c]
test ecx, ecx
je 0x417976
push 1
push ecx
call fcn.0052d747
add esp, 8
mov eax, dword [esi]
mov ecx, esi
push 1
mov dword [0x5e460c], 0
call dword [eax + 4]
mov ecx, dword [0x5dfc40]
test ecx, ecx
je 0x4179a3
push ecx
call fcn.00412e80
mov dword [0x5dfc40], 0
xor esi, esi
jmp 0x417c1c
push 0x3c
call fcn.0052d778
mov esi, eax
add esp, 4
mov dword [ebp - 0xfc], esi
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov byte [ebp - 4], 0xa
mov dword [esi], vtable.SoundControl.0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
call fcn.004553e0
mov dword [esi + 0x34], eax
mov esi, dword [eax + 0xc]
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov dword [ebp - 0xf4], 0x411
mov edx, str.Task_running.
cmp ax, word [ebp - 0xf4]
mov ecx, str.ck8k0
cmovne ecx, edx
push ecx
push ecx
push esi
mov esi, dword [ebp - 0xfc]
mov ecx, esi
push 0
call fcn.004f5960
push 0x14
mov dword [esi + 0x20], 1
call fcn.0052d778
mov ecx, eax
add esp, 4
lea eax, [ecx + 0xc]
mov dword [ebp - 0xf4], ecx
mov dword [ebp - 0x100], eax
mov dword [ecx], vtable.CVolumeMonitor.0
mov dword [ecx + 4], edi
mov dword [ecx + 8], 0
mov dword [eax], 0
mov dword [ecx + 0x10], 1
mov dword [esi + 0x38], ecx
mov byte [ebp - 4], 0xb
mov ecx, dword [eax]
test ecx, ecx
je 0x417ac0
mov dword [eax], 0
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [ebp - 0x100]
push eax
push 0x5bdee4
push 1
push 0
push 0x5bdec4
mov byte [ebp - 4], 0xa
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x417afa
mov edx, dword [ebp - 0xf4]
push edx
mov ecx, dword [edx + 0xc]
push ecx
mov eax, dword [ecx]
call dword [eax + 0x18]
mov eax, dword [ebp - 0xf4]
mov dword [eax + 8], 1
lea ecx, [ebp - 0x3c]
call fcn.0040b810
mov ecx, dword [ebp - 0x34]
mov eax, 0x4ec4ec4f
sub ecx, dword [ebp - 0x38]
imul ecx
lea ecx, [ebp - 0x38]
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esi + 0x24], eax
call fcn.0040bb70
mov byte [ebp - 4], 0
push 0x48
mov dword [0x5dfe98], esi
call fcn.0052d778
add esp, 4
mov dword [ebp - 0x104], eax
mov ecx, eax
mov byte [ebp - 4], 0xc
call fcn.00442ec0
push 4
push dword [ebp - 0xf8]
mov byte [ebp - 4], 0
mov ecx, dword [0x5dfc40]
mov dword [0x5dfe9c], eax
call fcn.004f5ae0
mov ecx, dword [0x5dfcdc]
call fcn.00437d60
lea ecx, [ebp - 0xf0]
call fcn.0041b700
mov ecx, dword [0x5dfc40]
push 0
push dword [0x5dfe98]
call fcn.004f5ae0
mov ecx, dword [0x5dfc40]
push 0
push dword [0x5dfe9c]
call fcn.004f5ae0
cmp dword [0x5e4574], 0
mov eax, dword [0x5e457c]
mov dword [ebp - 0xfc], eax
mov eax, dword [0x5dfcac]
mov dword [ebp - 0xf4], eax
jne 0x417c0c
push 0x58
call fcn.0052d778
mov esi, eax
add esp, 4
mov dword [ebp - 0x104], esi
mov eax, dword [ebp - 0xf4]
mov ecx, esi
mov byte [ebp - 4], 0xd
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 4], eax
mov eax, dword [ebp - 0xfc]
mov dword [esi], edi
mov dword [esi + 8], eax
mov dword [esi + 0xc], 0
call fcn.0040c0d0
mov dword [0x5e4574], esi
push SysReAllocString
call dword [sym.imp.KERNEL32.dll_SetThreadExecutionState]
mov esi, 1
mov ecx, dword [ebp - 0x80]
cmp ecx, 8
jb 0x417c5b
mov edx, dword [ebp - 0x94]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x417c51
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x417c51
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0052d747
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0052d3c5
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0xc
call fcn.00402990
int3