Function at 0x10041871
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10071324
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1a8
movzx eax, byte [ebp + 0x18]
test eax, eax
je 0x100422af
lea eax, [ebp + 0x14]
mov dword [ebp - 0x118], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0xf4], eax
mov eax, dword [ebp - 0x118]
movzx eax, byte [eax]
test eax, eax
je 0x100418ca
push 0x107e
call dword [sym.imp.USER32.dll_GetSysColorBrush]
jmp 0x100422aa
mov eax, dword [ebp - 0xf4]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x40], 0x4e064826
mov dword [ebp - 0x80], 0x9fff12f3
mov dword [ebp - 0x168], 0xcb6a7f4e
mov dword [ebp - 0x40], 0x19
jmp 0x100418fb
mov eax, dword [ebp - 0x40]
dec eax
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0xffffffeb
jle 0x10041a4e
mov dword [ebp - 0x14], 0x37d45db3
mov dword [ebp - 0xb4], 0x7a5b7d8c
mov dword [ebp - 0x60], 0
jmp 0x10041926
mov eax, dword [ebp - 0x60]
inc eax
mov dword [ebp - 0x60], eax
cmp dword [ebp - 0x60], 1
jge 0x10041939
mov eax, dword [ebp - 0x60]
mov dword [ebp + eax*4 - 0x44], 7
jmp 0x1004191f
mov dword [ebp - 0x14], 0
jmp 0x10041949
mov eax, dword [ebp - 0x14]
dec eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jl 0x10041a49
mov dword [ebp - 0x68], 0x13fe662d
mov eax, dword [ebp - 0x14]
cmp dword [ebp + eax*4 - 0x44], 0
je 0x10041983
mov eax, dword [ebp - 0x14]
cmp dword [ebp + eax*4 - 0x44], 0
je 0x10041983
cmp dword [ebp - 0xb4], 0
je 0x10041983
mov dword [ebp - 0xa0], 1
jmp 0x1004198a
and dword [ebp - 0xa0], 0
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x44]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x40]
neg eax
mov ecx, dword [ebp - 0xb4]
lea eax, [eax + ecx + 2]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x80]
cmp dword [ebp - 0x68], eax
jl 0x100419c3
cmp dword [ebp - 0x14], 0
je 0x100419c3
mov dword [ebp - 0x88], 1
jmp 0x100419ca
and dword [ebp - 0x88], 0
mov eax, dword [ebp - 0xa0]
cmp eax, dword [ebp - 0x88]
jl 0x100419e4
mov dword [ebp - 0xb0], 1
jmp 0x100419eb
and dword [ebp - 0xb0], 0
mov eax, dword [ebp - 0x14]
cmp dword [ebp - 0xb0], eax
jg 0x10041a18
mov byte [ebp - 0x16], 0
movzx eax, byte [ebp - 0x16]
test eax, eax
je 0x10041a16
push 0x5a79
push 0
push 0x670a
call fcn.1002c254
add esp, 0xc
jmp 0x10041a44
push 4
pop eax
imul eax, eax, 0
cmp dword [ebp + eax - 0x44], 0x623b
jg 0x10041a34
mov dword [ebp - 0x90], 1
jmp 0x10041a3b
and dword [ebp - 0x90], 0
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x68], eax
jmp 0x10041942
jmp 0x100418f4
push 0
push 0x3dcc
push 0x38f6
push 0x4421
push 1
call fcn.100344f9
add esp, 0x14
mov eax, dword [ebp - 0x48]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x48]
mov ecx, dword [ecx]
movzx ecx, word [ecx + 0x14]
lea eax, [eax + ecx + 0x18]
mov dword [ebp - 0x10], eax
push 0x3ed8
push 0x2212
push 1
push 0x27ff
push 0x2358
push 0
push 0x6298
push 0x3da3
push 0x22fa
push 0x696b
push 0x15de
call fcn.10036019
add esp, 0x2c
and dword [ebp - 0x70], 0
jmp 0x10041acd
mov eax, dword [ebp - 0x70]
inc eax
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x10]
add eax, 0x28
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x48]
mov eax, dword [eax]
movzx eax, word [eax + 6]
cmp dword [ebp - 0x70], eax
jge 0x100422aa
mov dword [ebp - 0x34], 1
mov dword [ebp - 0xfc], 5
mov dword [ebp - 0x34], 0xa
jmp 0x10041b00
mov eax, dword [ebp - 0x34]
dec eax
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0xfffffffb
jg 0x10041cf9
push 2
lea ecx, [ebp - 0x134]
call fcn.100214ae
and dword [ebp - 4], 0
mov dword [ebp - 0x24], 0
jmp 0x10041b2b
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 3
jge 0x10041b41
mov eax, dword [ebp - 0x24]
mov dword [ebp + eax*4 - 0x124], 1
jmp 0x10041b24
push 0x3b3
lea eax, [ebp - 0x134]
push eax
push 0x10d3
push 0x7f40
push 0x249d
push 0x6122
lea eax, [ebp - 0x24]
push eax
push 0
push 0
call fcn.10035d41
add esp, 0x24
push 4
pop eax
shl eax, 0
mov dword [ebp + eax - 0x124], 0xfffffff1
jmp 0x10041b9f
push 4
pop eax
shl eax, 0
mov eax, dword [ebp + eax - 0x124]
inc eax
push 4
pop ecx
shl ecx, 0
mov dword [ebp + ecx - 0x124], eax
push 4
pop eax
shl eax, 0
cmp dword [ebp + eax - 0x124], 6
je 0x10041ce5
mov dword [ebp - 0x7c], 0xfffffffe
mov dword [ebp - 0xb8], 0xffffffff
mov dword [ebp - 0x50], 0
jmp 0x10041bd4
mov eax, dword [ebp - 0x50]
inc eax
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 1
jge 0x10041bea
mov eax, dword [ebp - 0x50]
mov dword [ebp + eax*4 - 0xcc], 0xfffffffd
jmp 0x10041bcd
push 0
lea ecx, [ebp - 0x134]
call fcn.1002154c
mov dword [eax], 0xf365653d
push 0
lea ecx, [ebp - 0x134]
call fcn.1002154c
mov ecx, 0x52509e71
sub ecx, dword [eax]
imul eax, ecx, 0xb3e7
cmp eax, dword [ebp - 0x34]
jne 0x10041c28
mov dword [ebp - 0xa8], 1
jmp 0x10041c2f
and dword [ebp - 0xa8], 0
mov eax, dword [ebp - 0x7c]
cmp dword [ebp - 0xa8], eax
jle 0x10041c46
mov dword [ebp - 0x98], 1
jmp 0x10041c4d
and dword [ebp - 0x98], 0
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0xb8], eax
mov eax, 0xe6aa1654
sub eax, dword [ebp - 0xb8]
push 4
pop ecx
shl ecx, 0
sub eax, dword [ebp + ecx - 0x124]
cmp eax, 0x8d5feaf8
je 0x10041c84
mov dword [ebp - 0x84], 1
jmp 0x10041c8b
and dword [ebp - 0x84], 0
mov eax, dword [ebp - 0x7c]
cmp dword [ebp - 0x84], eax
jl 0x10041ca2
mov dword [ebp - 0x8c], 1
jmp 0x10041ca9
and dword [ebp - 0x8c], 0
cmp dword [ebp - 0x8c], 0x87642760
jb 0x10041cc0
or eax, 0xffffffff
jne 0x10041cc0
and dword [ebp - 0x6c], 0
jmp 0x10041cc7
mov dword [ebp - 0x6c], 1
push 4
pop eax
imul eax, eax, 0
mov ecx, dword [ebp - 0x6c]
mov dword [ebp + eax - 0xcc], ecx
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0xfc], eax
jmp 0x10041b84
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x134]
call fcn.10021530
jmp 0x10041af9
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x24]
and eax, 0x20000000
je 0x10041d12
mov dword [ebp - 0x94], 1
jmp 0x10041d19
and dword [ebp - 0x94], 0
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0xe0], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x24]
and eax, 0x40000000
je 0x10041d3e
mov dword [ebp - 0x9c], 1
jmp 0x10041d45
and dword [ebp - 0x9c], 0
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0xe8], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x24]
and eax, 0x80000000
je 0x10041d6a
mov dword [ebp - 0xa4], 1
jmp 0x10041d71
and dword [ebp - 0xa4], 0
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0x114], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x24]
and eax, 0x2000000
je 0x10041ea7
push 0x4000
mov eax, dword [ebp - 0x10]
push dword [eax + 0x10]
mov eax, dword [ebp - 0x10]
push dword [eax + 8]
push 0xc102
push 0xe128
call fcn.10020725
pop ecx
pop ecx
call eax
push 1
lea ecx, [ebp - 0x14c]
call fcn.100214ae
mov dword [ebp - 4], 1
push 3
lea ecx, [ebp - 0x158]
call fcn.100214ae
mov byte [ebp - 4], 2
mov dword [ebp - 0x104], 0xd9dcee34
mov dword [ebp - 0xd4], 0xf86f25db
mov dword [ebp - 0x17c], 0xa97f51ef
mov dword [ebp - 0x2c], 0
jmp 0x10041e05
mov eax, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 1
jge 0x10041e21
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x14c]
call fcn.1002154c
mov dword [eax], 1
jmp 0x10041dfe
lea eax, [ebp - 0x2c]
push eax
push 0
push 0xc75
push 0x2ca1
lea eax, [ebp - 0x158]
push eax
push 1
call fcn.1002eb78
add esp, 0x18
push 0
lea eax, [ebp - 0x14c]
push eax
push 0x3c8d
lea eax, [ebp - 0x158]
push eax
lea eax, [ebp - 0xd4]
push eax
push 0x5a8f
lea eax, [ebp - 0x104]
push eax
call fcn.10042865
add esp, 0x1c
mov byte [ebp - 0x15], 0
movzx eax, byte [ebp - 0x15]
test eax, eax
je 0x10041e84
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x158]
call fcn.10021530
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14c]
call fcn.10021530
jmp 0x10041abd
push 3
lea ecx, [ebp - 0x190]
call fcn.100214ae
mov dword [ebp - 4], 3
mov dword [ebp - 0x5c], 0x1e1e87df
mov dword [ebp - 0x128], 0
push 0x716d
lea eax, [ebp - 0x190]
push eax
lea eax, [ebp - 0x194]
push eax
push 0x125b
push 0x7161
push 0x1c75
push 0
push 1
call fcn.1002cdbb
add esp, 0x20
mov dword [ebp - 0x5c], 0
jmp 0x10041f0a
mov eax, dword [ebp - 0x5c]
inc eax
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 2
jg 0x10042026
mov dword [ebp - 0x58], 0xfffffff9
mov dword [ebp - 0x74], 0xfffffff7
mov dword [ebp - 0x58], 0
jmp 0x10041f32
mov eax, dword [ebp - 0x58]
inc eax
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 2
jg 0x10041ff6
mov dword [ebp - 0xac], 0
push 1
lea ecx, [ebp - 0x164]
call fcn.100214ae
mov byte [ebp - 4], 4
push 0x4d0d
lea eax, [ebp - 0x164]
push eax
lea eax, [ebp - 0x3c]
push eax
push 0
push 1
push 0x2113
push 0
push 0x4741
call fcn.10041871
add esp, 0x20
mov dword [ebp - 0x3c], 0
jmp 0x10041f8f
mov eax, dword [ebp - 0x3c]
inc eax
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 2
jge 0x10041fa5
mov eax, dword [ebp - 0x3c]
mov dword [ebp + eax*4 - 0x1a8], 0
jmp 0x10041f88
mov eax, dword [ebp - 0xac]
mov dword [ebp - 0x16c], eax
mov eax, dword [ebp - 0xac]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x78], eax
push 0
lea ecx, [ebp - 0x164]
call fcn.1002154c
mov ecx, dword [ebp - 0x78]
mov dword [eax], ecx
push 4
pop eax
shl eax, 0
mov ecx, dword [ebp - 0x78]
mov dword [ebp + eax - 0x1a8], ecx
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x164]
call fcn.10021530
jmp 0x10041f2b
push 0x6169
push 0x649a
push 1
lea eax, [ebp - 0x74]
push eax
push 0x37e4
push 0x4db1
lea eax, [ebp - 0x128]
push eax
push 0
call fcn.1002c12b
add esp, 0x20
jmp 0x10041f03
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x190]
call fcn.10021530
lea eax, [ebp - 0xe0]
push eax
push 0x48a0
lea eax, [ebp - 0x10]
push eax
push 0
lea eax, [ebp - 0xc0]
push eax
push 1
push 0x7b27
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0xe8]
push eax
call fcn.10035748
add esp, 0x24
mov dword [ebp - 0x20], 0xf43b7c7c
mov dword [ebp - 0x170], 1
mov dword [ebp - 0x64], 0
jmp 0x1004208c
mov eax, dword [ebp - 0x64]
inc eax
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x64], 3
jge 0x100420a2
mov eax, dword [ebp - 0x64]
mov dword [ebp + eax*4 - 0x1b4], 0xffffffff
jmp 0x10042085
mov dword [ebp - 0x20], 0
jmp 0x100420b2
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 3
jge 0x100420c8
mov eax, dword [ebp - 0x20]
mov dword [ebp + eax*4 - 0x1b4], 0xfffffffb
jmp 0x100420ab
push 0x714b
push 1
push dword [ebp - 0x48]
push dword [ebp - 0x10]
lea eax, [ebp - 0xbc]
push eax
push 0x4796
push 0
push 0x46b4
call fcn.10038868
add esp, 0x20
mov dword [ebp - 0x4c], 0xd313dd33
push 2
lea ecx, [ebp - 0x140]
call fcn.100214ae
mov dword [ebp - 4], 5
mov dword [ebp - 0x110], 0
mov dword [ebp - 0x178], 0xfffffff6
push 1
lea ecx, [ebp - 0x1a0]
call fcn.100214ae
mov byte [ebp - 4], 6
lea eax, [ebp - 0x140]
push eax
push 1
push 1
push 0
lea eax, [ebp - 0x28]
push eax
push 0x7eea
call fcn.1004338b
add esp, 0x18
mov dword [ebp - 0x28], 0
jmp 0x1004215e
mov eax, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 1
jge 0x1004217a
push dword [ebp - 0x28]
lea ecx, [ebp - 0x1a0]
call fcn.1002154c
mov dword [eax], 0xdec4f3f7
jmp 0x10042157
mov dword [ebp - 0x4c], 0
jmp 0x1004218a
mov eax, dword [ebp - 0x4c]
dec eax
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0xffffffea
jge 0x10042252
mov dword [ebp - 0x30], 0xffffffff
mov dword [ebp - 0x180], 0x8a94b2ab
mov dword [ebp - 0xf0], 0x415fb57a
mov dword [ebp - 0x54], 0
jmp 0x100421bf
mov eax, dword [ebp - 0x54]
inc eax
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 1
jge 0x100421d5
mov eax, dword [ebp - 0x54]
mov dword [ebp + eax*4 - 0x184], 0xffffffff
jmp 0x100421b8
mov dword [ebp - 0x30], 1
jmp 0x100421e5
mov eax, dword [ebp - 0x30]
dec eax
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jl 0x1004222b
push 0x7c3d
push 0x5d42
push 0
push 0x683c
lea eax, [ebp - 0x110]
push eax
push 1
push 1
push 0x2f8d
call fcn.10033410
add esp, 0x20
push dword [ebp - 0x30]
lea ecx, [ebp - 0x140]
call fcn.1002154c
cmp dword [eax], 0
je 0x10042229
jmp 0x100421de
jmp 0x100421de
push 0x2322
lea eax, [ebp - 0xf0]
push eax
push 0
push 0x7482
push 0
push 0x11c2
call fcn.10034570
add esp, 0x18
jmp 0x10042183
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x1a0]
call fcn.10021530
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x140]
call fcn.10021530
cmp dword [ebp - 0xbc], 0
jbe 0x100422a5
lea eax, [ebp - 0x174]
push eax
push dword [ebp - 0xc0]
push dword [ebp - 0xbc]
mov eax, dword [ebp - 0x10]
push dword [eax + 8]
push 0xc102
push 0xdaba
call fcn.10020725
pop ecx
pop ecx
call eax
jmp 0x10041abd
jmp 0x100423b1
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x100], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0xec], eax
lea eax, [ebp + 0xc]
mov dword [ebp - 0xf8], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x108], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0xe4], eax
mov eax, dword [ebp - 0xf8]
movzx eax, byte [eax]
test eax, eax
je 0x1004234e
mov eax, dword [ebp - 0x108]
mov dword [ebp - 0x10c], eax
mov eax, dword [ebp - 0x100]
mov dword [ebp - 0xd8], eax
mov eax, dword [ebp - 0x10c]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0xd8]
mov dword [ebp - 0xdc], eax
mov eax, dword [ebp - 0x38]
mov dword [eax], 0
jmp 0x1004232c
mov eax, dword [ebp - 0x38]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0x38]
mov dword [ecx], eax
mov eax, dword [ebp - 0x38]
cmp dword [eax], 1
jge 0x1004234c
mov eax, dword [ebp - 0x38]
push dword [eax]
mov ecx, dword [ebp - 0xdc]
call fcn.1002154c
mov dword [eax], 0x2a831d26
jmp 0x10042321
jmp 0x100423b1
mov eax, dword [ebp - 0xe4]
mov dword [ebp - 0xc4], eax
mov eax, dword [ebp - 0xec]
mov dword [ebp - 0xc8], eax
mov eax, dword [ebp - 0xc4]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0xc8]
mov dword [ebp - 0xd0], eax
mov eax, dword [ebp - 0x1c]
mov dword [eax], 0
jmp 0x10042391
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0x1c]
mov dword [ecx], eax
mov eax, dword [ebp - 0x1c]
cmp dword [eax], 1
jge 0x100423b1
mov eax, dword [ebp - 0x1c]
push dword [eax]
mov ecx, dword [ebp - 0xd0]
call fcn.1002154c
mov dword [eax], 0x2a831d26
jmp 0x10042386
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret