Function at 0x41b8a6
Capabilities:
Identify system language via api

Disassembly:
push 0x120
mov eax, 0x46196d
call fcn.00446255
mov esi, ecx
mov dword [ebp - 0xfc], esi
xor eax, eax
mov dword [ebp - 0xdc], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0xc8], eax
mov byte [ebp - 4], 1
mov dword [ebp - 0xcc], eax
mov byte [ebp - 4], 2
mov dword [ebp - 0xe0], eax
mov byte [ebp - 4], 3
mov dword [ebp - 0xe8], eax
mov byte [ebp - 4], 4
mov dword [ebp - 0xd8], eax
mov byte [ebp - 4], 5
mov dword [ebp - 0xf0], eax
mov byte [ebp - 4], 6
mov dword [ebp - 0xe4], eax
mov byte [ebp - 4], 7
mov dword [ebp - 0xd0], eax
mov byte [ebp - 4], 8
mov dword [ebp - 0xf4], eax
mov byte [ebp - 4], 9
mov dword [ebp - 0xec], eax
mov byte [ebp - 4], 0xa
mov dword [ebp - 0xd4], eax
mov byte [ebp - 4], 0xb
mov dword [ebp - 0xf8], eax
mov byte [ebp - 4], 0xc
lea edi, [ebp - 0x12c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
lea edi, [ebp - 0x110]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx ecx, ax
lea edx, [ebp - 0xbc]
push 0x55
call fcn.004405e3
test eax, eax
jne 0x41b98d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.0042001a
mov ebx, eax
mov ecx, ebx
call fcn.0041b100
jmp 0x41c26a
lea eax, [ebp - 0xc0]
push eax
push 0x55
pop edx
lea ecx, [ebp - 0xbc]
call fcn.0042008d
mov ebx, eax
test ebx, ebx
js 0x41b981
lea eax, [ebp - 0x12c]
push eax
push 0x408b08
push esi
call fcn.00435205
mov ebx, eax
add esp, 0xc
test ebx, ebx
js 0x41b981
lea eax, [ebp - 0x114]
push eax
push 0x408b3c
lea eax, [ebp - 0x12c]
push eax
push esi
call fcn.00435340
mov ebx, eax
add esp, 0x10
test ebx, ebx
js 0x41b981
xor eax, eax
mov dword [ebp - 0x118], eax
cmp dword [ebp - 0x114], eax
jbe 0x41c25f
push eax
lea eax, [ebp - 0x110]
push eax
push 0x408b50
lea eax, [ebp - 0x12c]
push eax
push esi
call fcn.00435223
mov ebx, eax
add esp, 0x14
test ebx, ebx
js 0x41b981
cmp dword [ebp - 0xf8], 0
je 0x41ba45
push dword [ebp - 0xf8]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
and dword [ebp - 0xf8], 0
lea eax, [ebp - 0xf8]
push eax
push 0x408b68
push 0x408b84
lea eax, [ebp - 0x110]
push eax
push esi
call fcn.0043539b
mov ebx, eax
add esp, 0x14
test ebx, ebx
js 0x41b981
push 0xffffffffffffffff
push dword [ebp - 0xf8]
lea eax, [ebp - 0xbc]
push 0xffffffffffffffff
push eax
push 1
push 0x409
call dword [sym.imp.KERNEL32.dll_CompareStringW]
push 0xffffffffffffffff
push dword [ebp - 0xf8]
sub eax, 2
push 0xffffffffffffffff
push 0x408b88
neg eax
push 1
push 0x409
sbb edi, edi
call dword [sym.imp.KERNEL32.dll_CompareStringW]
sub eax, 2
neg eax
sbb eax, eax
inc eax
mov dword [ebp - 0xc0], eax
inc edi
jne 0x41baca
test eax, eax
je 0x41c235
cmp dword [ebp - 0xdc], 0
je 0x41baef
push dword [ebp - 0xdc]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
and dword [ebp - 0xdc], 0
lea eax, [ebp - 0xdc]
push eax
push 0
push 0x408b98
lea eax, [ebp - 0x110]
push eax
push esi
call fcn.0043539b
mov ebx, eax
add esp, 0x14
test ebx, ebx
js 0x41b981
cmp dword [ebp - 0xc8], 0
je 0x41bb3c
push dword [ebp - 0xc8]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
and dword [ebp - 0xc8], 0
lea eax, [ebp - 0xc8]
push eax
push 0
push 0x408ba8
lea eax, [ebp - 0x110]
push eax
push esi
call fcn.0043539b
mov ebx, eax
add esp, 0x14
test ebx, ebx
js 0x41b981
cmp dword [ebp - 0xcc], 0
je 0x41bb89
push dword [ebp - 0xcc]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
and dword [ebp - 0xcc], 0
lea eax, [ebp - 0xcc]
push eax
push 0
push 0x408bb8
lea eax, [ebp - 0x110]
push eax
push esi
call fcn.0043539b
mov ebx, eax
add esp, 0x14
test ebx, ebx
js 0x41b981
cmp dword [ebp - 0xe0], 0
je 0x41bbd6
push dword [ebp - 0xe0]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
and dword [ebp - 0xe0], 0
lea eax, [ebp - 0xe0]
push eax
push 0
push 0x408bc4
lea eax, [ebp - 0x110]
push eax
push esi
call fcn.0043539b
mov ebx, eax
add esp, 0x14
test ebx, ebx
js 0x41b981
cmp dword [ebp - 0xe8], 0
je 0x41bc23
push dword [ebp - 0xe8]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
and dword [ebp - 0xe8], 0
lea eax, [ebp - 0xe8]
push eax
push 0
push 0x408bd4
lea eax, [ebp - 0x110]
push eax
push esi
call fcn.0043539b
mov ebx, eax
add esp, 0x14
test ebx, ebx
js 0x41b981
cmp dword [ebp - 0xd8], 0
je 0x41bc70
push dword [ebp - 0xd8]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
and dword [ebp - 0xd8], 0
lea eax, [ebp - 0xd8]
push eax
push 0
push 0x408be4
lea eax, [ebp - 0x110]
push eax
push esi
call fcn.0043539b
mov ebx, eax
add esp, 0x14
test ebx, ebx
js 0x41b981
cmp dword [ebp - 0xf0], 0
je 0x41bcbd
push dword [ebp - 0xf0]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
and dword [ebp - 0xf0], 0
lea eax, [ebp - 0xf0]
push eax
push 0
push 0x408bf4
lea eax, [ebp - 0x110]
push eax
push esi
call fcn.0043539b
mov ebx, eax
add esp, 0x14
test ebx, ebx
js 0x41b981
cmp dword [ebp - 0xe4], 0
je 0x41bd0a
push dword [ebp - 0xe4]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
and dword [ebp - 0xe4], 0
lea eax, [ebp - 0xe4]
push eax
push 0
push 0x408c0c
lea eax, [ebp - 0x110]
push eax
push esi
call fcn.0043539b
mov ebx, eax
add esp, 0x14
test ebx, ebx
js 0x41b981
cmp dword [ebp - 0xd0], 0
je 0x41bd57
push dword [ebp - 0xd0]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
and dword [ebp - 0xd0], 0
lea eax, [ebp - 0xd0]
push eax
push 0
push 0x408c14
lea eax, [ebp - 0x110]
push eax
push esi
call fcn.0043539b
mov ebx, eax
add esp, 0x14
test ebx, ebx
js 0x41b981
cmp dword [ebp - 0xf4], 0
je 0x41bda4
push dword [ebp - 0xf4]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
and dword [ebp - 0xf4], 0
lea eax, [ebp - 0xf4]
push eax
push 0
push 0x408c20
lea eax, [ebp - 0x110]
push eax
push esi
call fcn.0043539b
mov ebx, eax
add esp, 0x14
test ebx, ebx
js 0x41b981
cmp dword [ebp - 0xec], 0
je 0x41bdf1
push dword [ebp - 0xec]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
and dword [ebp - 0xec], 0
lea eax, [ebp - 0xec]
push eax
push 0
push 0x408c2c
lea eax, [ebp - 0x110]
push eax
push esi
call fcn.0043539b
mov ebx, eax
add esp, 0x14
test ebx, ebx
js 0x41b981
cmp dword [ebp - 0xd4], 0
je 0x41be3e
push dword [ebp - 0xd4]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
and dword [ebp - 0xd4], 0
lea eax, [ebp - 0xd4]
push eax
push 0
push 0x408c3c
lea eax, [ebp - 0x110]
push eax
push esi
call fcn.0043539b
mov ebx, eax
add esp, 0x14
test ebx, ebx
js 0x41b981
test edi, edi
je 0x41c04b
mov edi, dword [ebp - 0xfc]
lea eax, [ebp - 0xc4]
mov esi, dword [ebp - 0xdc]
add edi, 0x2c
and dword [ebp - 0xdc], 0
mov ecx, edi
push eax
mov dword [ebp - 0xc4], 0x408c5c
call fcn.0041ddc0
mov ecx, edi
mov dword [ebp - 0xc4], 0x408c70
mov dword [eax], esi
lea eax, [ebp - 0xc4]
mov esi, dword [ebp - 0xc8]
and dword [ebp - 0xc8], 0
push eax
call fcn.0041ddc0
mov ecx, edi
mov dword [ebp - 0xc4], 0x408c84
mov dword [eax], esi
lea eax, [ebp - 0xc4]
mov esi, dword [ebp - 0xcc]
and dword [ebp - 0xcc], 0
push eax
call fcn.0041ddc0
mov ecx, edi
mov dword [ebp - 0xc4], 0x408c94
mov dword [eax], esi
lea eax, [ebp - 0xc4]
mov esi, dword [ebp - 0xe0]
and dword [ebp - 0xe0], 0
push eax
call fcn.0041ddc0
mov ecx, edi
mov dword [ebp - 0xc4], 0x408ca8
mov dword [eax], esi
lea eax, [ebp - 0xc4]
mov esi, dword [ebp - 0xe8]
and dword [ebp - 0xe8], 0
push eax
call fcn.0041ddc0
mov ecx, edi
mov dword [ebp - 0xc4], 0x408cbc
mov dword [eax], esi
lea eax, [ebp - 0xc4]
mov esi, dword [ebp - 0xd8]
and dword [ebp - 0xd8], 0
push eax
call fcn.0041ddc0
mov ecx, edi
mov dword [ebp - 0xc4], 0x408cd0
mov dword [eax], esi
lea eax, [ebp - 0xc4]
mov esi, dword [ebp - 0xf0]
and dword [ebp - 0xf0], 0
push eax
call fcn.0041ddc0
mov ecx, edi
mov dword [ebp - 0xc4], 0x408cec
mov dword [eax], esi
lea eax, [ebp - 0xc4]
mov esi, dword [ebp - 0xe4]
and dword [ebp - 0xe4], 0
push eax
call fcn.0041ddc0
mov ecx, edi
mov dword [ebp - 0xc4], 0x408cf8
mov dword [eax], esi
lea eax, [ebp - 0xc4]
mov esi, dword [ebp - 0xd0]
and dword [ebp - 0xd0], 0
push eax
call fcn.0041ddc0
mov ecx, edi
mov dword [ebp - 0xc4], 0x408d08
mov dword [eax], esi
lea eax, [ebp - 0xc4]
mov esi, dword [ebp - 0xf4]
and dword [ebp - 0xf4], 0
push eax
call fcn.0041ddc0
mov dword [eax], esi
mov ecx, edi
mov esi, dword [ebp - 0xec]
lea eax, [ebp - 0xc4]
and dword [ebp - 0xec], 0
push eax
mov dword [ebp - 0xc4], 0x408d18
call fcn.0041ddc0
mov ecx, edi
mov dword [ebp - 0xc4], 0x408d2c
mov dword [eax], esi
lea eax, [ebp - 0xc4]
mov esi, dword [ebp - 0xd4]
and dword [ebp - 0xd4], 0
push eax
call fcn.0041ddc0
mov dword [eax], esi
cmp dword [ebp - 0xc0], 0
je 0x41c235
mov edi, dword [ebp - 0xfc]
lea eax, [ebp - 0xc0]
mov esi, dword [ebp - 0xdc]
add edi, 4
and dword [ebp - 0xdc], 0
mov ecx, edi
push eax
mov dword [ebp - 0xc0], 0x408c5c
call fcn.0041ddc0
mov ecx, edi
mov dword [ebp - 0xc0], 0x408c70
mov dword [eax], esi
lea eax, [ebp - 0xc0]
mov esi, dword [ebp - 0xc8]
and dword [ebp - 0xc8], 0
push eax
call fcn.0041ddc0
mov ecx, edi
mov dword [ebp - 0xc0], 0x408c84
mov dword [eax], esi
lea eax, [ebp - 0xc0]
mov esi, dword [ebp - 0xcc]
and dword [ebp - 0xcc], 0
push eax
call fcn.0041ddc0
mov ecx, edi
mov dword [ebp - 0xc0], 0x408c94
mov dword [eax], esi
lea eax, [ebp - 0xc0]
mov esi, dword [ebp - 0xe0]
and dword [ebp - 0xe0], 0
push eax
call fcn.0041ddc0
mov ecx, edi
mov dword [ebp - 0xc0], 0x408ca8
mov dword [eax], esi
lea eax, [ebp - 0xc0]
mov esi, dword [ebp - 0xe8]
and dword [ebp - 0xe8], 0
push eax
call fcn.0041ddc0
mov ecx, edi
mov dword [ebp - 0xc0], 0x408cbc
mov dword [eax], esi
lea eax, [ebp - 0xc0]
mov esi, dword [ebp - 0xd8]
and dword [ebp - 0xd8], 0
push eax
call fcn.0041ddc0
mov ecx, edi
mov dword [ebp - 0xc0], 0x408cd0
mov dword [eax], esi
lea eax, [ebp - 0xc0]
mov esi, dword [ebp - 0xf0]
and dword [ebp - 0xf0], 0
push eax
call fcn.0041ddc0
mov ecx, edi
mov dword [ebp - 0xc0], 0x408cec
mov dword [eax], esi
lea eax, [ebp - 0xc0]
mov esi, dword [ebp - 0xe4]
and dword [ebp - 0xe4], 0
push eax
call fcn.0041ddc0
mov ecx, edi
mov dword [ebp - 0xc0], 0x408cf8
mov dword [eax], esi
lea eax, [ebp - 0xc0]
mov esi, dword [ebp - 0xd0]
and dword [ebp - 0xd0], 0
push eax
call fcn.0041ddc0
mov ecx, edi
mov dword [ebp - 0xc0], 0x408d08
mov dword [eax], esi
lea eax, [ebp - 0xc0]
mov esi, dword [ebp - 0xf4]
and dword [ebp - 0xf4], 0
push eax
call fcn.0041ddc0
mov dword [eax], esi
mov ecx, edi
mov esi, dword [ebp - 0xec]
lea eax, [ebp - 0xc0]
and dword [ebp - 0xec], 0
push eax
mov dword [ebp - 0xc0], 0x408d18
call fcn.0041ddc0
mov ecx, edi
mov dword [ebp - 0xc0], 0x408d2c
mov dword [eax], esi
lea eax, [ebp - 0xc0]
mov esi, dword [ebp - 0xd4]
and dword [ebp - 0xd4], 0
push eax
call fcn.0041ddc0
mov dword [eax], esi
lea ecx, [ebp - 0x110]
call fcn.00435245
mov eax, dword [ebp - 0x118]
mov esi, dword [ebp - 0xfc]
inc eax
mov dword [ebp - 0x118], eax
cmp eax, dword [ebp - 0x114]
jb 0x41b9f9
lea ecx, [ebp - 0x12c]
call fcn.00435245
mov ecx, ebx
call fcn.0041b049
mov byte [ebp - 4], 0xb
cmp dword [ebp - 0xf8], 0
je 0x41c29a
push dword [ebp - 0xf8]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
and dword [ebp - 0xf8], 0
mov byte [ebp - 4], 0xa
cmp dword [ebp - 0xd4], 0
je 0x41c2c3
push dword [ebp - 0xd4]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
and dword [ebp - 0xd4], 0
mov byte [ebp - 4], 9
cmp dword [ebp - 0xec], 0
je 0x41c2ec
push dword [ebp - 0xec]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
and dword [ebp - 0xec], 0
mov byte [ebp - 4], 8
cmp dword [ebp - 0xf4], 0
je 0x41c315
push dword [ebp - 0xf4]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
and dword [ebp - 0xf4], 0
mov byte [ebp - 4], 7
cmp dword [ebp - 0xd0], 0
je 0x41c33e
push dword [ebp - 0xd0]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
and dword [ebp - 0xd0], 0
mov byte [ebp - 4], 6
cmp dword [ebp - 0xe4], 0
je 0x41c367
push dword [ebp - 0xe4]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
and dword [ebp - 0xe4], 0
mov byte [ebp - 4], 5
cmp dword [ebp - 0xf0], 0
je 0x41c390
push dword [ebp - 0xf0]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
and dword [ebp - 0xf0], 0
mov byte [ebp - 4], 4
cmp dword [ebp - 0xd8], 0
je 0x41c3b9
push dword [ebp - 0xd8]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
and dword [ebp - 0xd8], 0
mov byte [ebp - 4], 3
cmp dword [ebp - 0xe8], 0
je 0x41c3e2
push dword [ebp - 0xe8]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
and dword [ebp - 0xe8], 0
mov byte [ebp - 4], 2
cmp dword [ebp - 0xe0], 0
je 0x41c40b
push dword [ebp - 0xe0]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
and dword [ebp - 0xe0], 0
mov byte [ebp - 4], 1
cmp dword [ebp - 0xcc], 0
je 0x41c434
push dword [ebp - 0xcc]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
and dword [ebp - 0xcc], 0
mov byte [ebp - 4], 0
cmp dword [ebp - 0xc8], 0
je 0x41c45d
push dword [ebp - 0xc8]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
and dword [ebp - 0xc8], 0
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0xdc], 0
je 0x41c486
push dword [ebp - 0xdc]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
and dword [ebp - 0xdc], 0
mov eax, ebx
call fcn.00446209
ret