Function at 0x46ed60
Capabilities:
Identify system language via api

Disassembly:
push 0xffffffffffffffff
push 0x4d9830
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x51b260]
xor eax, esp
mov dword [esp + 0x54], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x51b260]
xor eax, esp
push eax
lea eax, [esp + 0x6c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x7c]
mov edi, dword [esp + 0x84]
mov ebp, dword [esp + 0x88]
mov esi, ecx
mov ecx, dword [esp + 0x80]
xor ebx, ebx
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], ecx
cmp dword [esi + 0x890], ebx
jne 0x46f3bf
push eax
call fcn.00490433
mov edx, dword [esp + 0x20]
push edx
call dword [sym.imp.user32.dll_GetDC]
push eax
mov dword [esp + 0x2c], eax
call fcn.00490433
push ebp
push edi
mov ecx, esi
call fcn.0046dbd0
call dword [sym.imp.kernel32.dll_GetSystemDefaultLangID]
mov ebp, dword [sym.imp.kernel32.dll_GetUserDefaultUILanguage]
mov dword [esi + 0x1bc], ebx
mov dword [esi + 0x1c0], ebx
mov dword [esi + 0x204], ebx
mov dword [esi + 0x208], ebx
and eax, 0x3ff
sub dword [esi + 0x858], eax
mov dword [esi + 0x20c], 1
mov dword [esi + 0x210], ebx
mov dword [esi + 0x214], ebx
call ebp
movzx eax, ax
sub dword [esi + 0x854], eax
mov ecx, dword [edi + 0x3280]
mov dword [esi + 0xd0], ecx
mov eax, dword [edi + 0x3284]
mov dword [esi + 0xd4], eax
mov edx, dword [edi + 0x3288]
add edx, eax
mov dword [esi + 0xc8], edx
mov eax, dword [edi + 0x328c]
mov dword [esi + 0xcc], eax
mov ecx, dword [edi + 0x3290]
mov dword [esi + 0xdc], ecx
mov edx, dword [edi + 0x3294]
mov dword [esi + 0xd8], edx
mov eax, dword [edi + 0x3298]
mov dword [esi + 0xe4], eax
mov ecx, dword [edi + 0x329c]
mov dword [esi + 0xe0], ecx
mov edx, dword [edi + 0x32a0]
mov dword [esi + 0xbc], 0x19
dec edx
mov dword [esi + 0xb8], edx
mov eax, dword [edi + 0x32d8]
mov dword [esi + 0xec], eax
mov ecx, dword [edi + 0x32dc]
mov dword [esi + 0xe8], ecx
mov edx, dword [edi + 0x32e0]
mov dword [esi + 0xf4], edx
mov eax, dword [edi + 0x32e4]
mov dword [esi + 0xf0], eax
mov ecx, dword [edi + 0x32e8]
dec ecx
mov dword [esi + 0xc0], ecx
mov edx, dword [edi + 0x32f0]
mov dword [esi + 0x8e8], edx
mov eax, dword [edi + 0x32f4]
mov dword [esi + 0x8ec], eax
mov ecx, dword [edi + 0x32f8]
mov dword [esi + 0x8f0], ecx
mov edx, dword [edi + 0x32fc]
mov dword [esi + 0x8f4], edx
mov eax, dword [edi + 0x3300]
mov dword [esi + 0x8f8], eax
mov ecx, dword [edi + 0x3304]
mov dword [esi + 0x8fc], ecx
call ebp
movzx edx, ax
sub dword [esi + 0x850], edx
cmp dword [esi + 0x248], 0xffffffff
jne 0x46ef55
mov eax, dword [edi + 0x32ec]
mov dword [esi + 0x248], eax
cmp dword [esi + 0x248], ebx
jne 0x46ef95
mov ecx, dword [esi + 0xdc]
mov edx, dword [esi + 0xd8]
mov eax, dword [esi + 0xe4]
mov dword [esi + 0x234], ecx
mov ecx, dword [esi + 0xe0]
mov dword [esi + 0x238], edx
mov edx, dword [esi + 0xb8]
mov dword [esi + 0x240], eax
lea eax, [esi + 0x558]
jmp 0x46efcb
mov ecx, dword [esi + 0xec]
mov edx, dword [esi + 0xe8]
mov eax, dword [esi + 0xf4]
mov dword [esi + 0x234], ecx
mov ecx, dword [esi + 0xf0]
mov dword [esi + 0x238], edx
mov edx, dword [esi + 0xc0]
mov dword [esi + 0x240], eax
lea eax, [esi + 0x688]
mov dword [esi + 0x23c], ecx
mov ecx, dword [esi + 0x238]
mov dword [esi + 0xb4], edx
mov edx, dword [esi + 0x234]
push ebx
mov dword [esi + 0x1c4], ecx
mov dword [esi + 0x554], eax
mov dword [esi + 0x1c8], edx
mov dword [esi + 0x2c], 0x6a79fb
mov dword [esi + 0x30], 0xffffff
mov eax, dword [edi + 0x32c0]
push ebx
push eax
mov ecx, edi
mov dword [esi + 0x384], eax
call fcn.0040ee90
mov eax, dword [esi + 0x384]
push 1
push eax
mov ecx, edi
call fcn.0040fe70
push ebx
mov dword [esi + 0x388], eax
mov eax, dword [edi + 0x3320]
push ebx
push eax
mov ecx, edi
mov dword [esi + 0x450], eax
call fcn.0040ee90
mov ecx, dword [esi + 0x450]
push 1
push ecx
mov ecx, edi
call fcn.0040fe70
push ebx
mov dword [esi + 0x458], eax
mov eax, dword [edi + 0x3324]
push ebx
push eax
mov ecx, edi
mov dword [esi + 0x454], eax
call fcn.0040ee90
mov edx, dword [esi + 0x454]
push 1
push edx
mov ecx, edi
call fcn.0040fe70
mov ecx, dword [esi + 0x20]
mov dword [esi + 0x45c], eax
mov eax, ecx
shr eax, 0x10
mov dword [esp + 0x1c], eax
fild dword [esp + 0x1c]
test eax, eax
jge 0x46f0a1
fadd qword [0x4db6e0]
fld qword [0x4e0990]
movzx ecx, cl
fdiv st(1), st(0)
fnstcw word [esp + 0x18]
fxch st(1)
movzx eax, word [esp + 0x18]
or eax, 0xc00
mov dword [esp + 0x14], eax
movzx eax, byte [esi + 0x21]
fldcw word [esp + 0x14]
fistp dword [esp + 0x14]
mov dl, byte [esp + 0x14]
mov dword [esp + 0x14], eax
movzx edx, dl
fldcw word [esp + 0x18]
shl edx, 8
fild dword [esp + 0x14]
fnstcw word [esp + 0x18]
fdiv st(1)
movzx eax, word [esp + 0x18]
or eax, 0xc00
mov dword [esp + 0x14], eax
fldcw word [esp + 0x14]
fistp dword [esp + 0x14]
movzx eax, byte [esp + 0x14]
mov dword [esp + 0x14], ecx
or edx, eax
fldcw word [esp + 0x18]
shl edx, 8
fild dword [esp + 0x14]
fnstcw word [esp + 0x18]
fdivrp st(1)
movzx eax, word [esp + 0x18]
or eax, 0xc00
mov dword [esp + 0x14], eax
fldcw word [esp + 0x14]
fistp dword [esp + 0x14]
movzx eax, byte [esp + 0x14]
movzx ecx, al
fldcw word [esp + 0x18]
or edx, ecx
mov dword [esi + 0x28], edx
call ebp
movzx edx, ax
sub dword [esi + 0x84c], edx
cmp dword [esi + 0x49c], 0xffffffff
jne 0x46f23c
mov dword [esi + 0x49c], ebx
mov ecx, dword [esi + 0x928]
sub ecx, dword [esi + 0x924]
mov eax, 0x88888889
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, ebx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ebx
jle 0x46f23c
mov dword [esp + 0x14], ebx
mov ecx, dword [esi + 0x928]
sub ecx, dword [esi + 0x924]
mov eax, 0x88888889
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x18], eax
jb 0x46f1bc
call fcn.0049eacd
mov ecx, dword [esi + 0x924]
add ecx, dword [esp + 0x14]
push ecx
lea ecx, [esp + 0x30]
call fcn.00464ec0
mov ebp, 0x4e00b8
lea eax, [esp + 0x48]
lea esp, [esp]
mov cl, byte [eax]
cmp cl, byte [ebp]
jne 0x46f201
cmp cl, bl
je 0x46f1fd
mov cl, byte [eax + 1]
cmp cl, byte [ebp + 1]
jne 0x46f201
add eax, 2
add ebp, 2
cmp cl, bl
jne 0x46f1e0
xor eax, eax
jmp 0x46f206
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
mov eax, dword [esp + 0x18]
je 0x46f224
add dword [esp + 0x14], 0x3c
inc eax
cmp eax, dword [esp + 0x1c]
mov dword [esp + 0x18], eax
jl 0x46f192
jmp 0x46f236
mov dword [esi + 0x49c], eax
mov dword [esi + 0x4a0], eax
mov dword [esi + 0x4a4], eax
mov ebp, dword [sym.imp.kernel32.dll_GetUserDefaultUILanguage]
lea eax, [esi + 0x930]
cmp eax, ebx
je 0x46f24b
cmp dword [eax + 4], ebx
jne 0x46f2c6
push ebx
call dword [sym.imp.gdi32.dll_CreateCompatibleDC]
push eax
lea ecx, [esi + 0x930]
call fcn.00490447
mov edx, dword [edi + 0x3264]
mov eax, dword [edi + 0x3260]
push 0x18
push edx
push eax
lea ecx, [esi + 0x930]
call fcn.00414990
push ebx
call dword [sym.imp.gdi32.dll_CreateCompatibleDC]
push eax
lea ecx, [esi + 0x97c]
call fcn.00490447
mov ecx, dword [edi + 0x3264]
mov edx, dword [edi + 0x3260]
push 0x18
push ecx
push edx
lea ecx, [esi + 0x97c]
call fcn.00414990
mov eax, dword [esi + 0xd0]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
push eax
mov eax, dword [esi + 0x934]
push ecx
push edx
push eax
mov ecx, esi
call fcn.00468f70
lea ecx, [edi + 0x326c]
push ecx
lea ecx, [edi + 0x31ac]
call fcn.0040ffe0
mov edx, dword [eax]
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x40], esp
push 0xffffffffffffffff
mov dword [esi + 0x520], edx
lea eax, [edi + 0x3220]
push ebx
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
push eax
mov byte [ecx + 4], bl
call fcn.00401860
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x54], esp
push 0xffffffffffffffff
lea eax, [edi + 0x3204]
push ebx
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
push eax
mov dword [esp + 0xb8], ebx
mov byte [ecx + 4], bl
call fcn.00401860
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x68], esp
push 0xffffffffffffffff
push ebx
add edi, 0x31e8
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
push edi
mov byte [esp + 0xd4], 1
mov byte [ecx + 4], bl
call fcn.00401860
mov ecx, esi
mov dword [esp + 0xc8], 0xffffffff
call fcn.00467e70
lea ecx, [esi + 0x30c]
call fcn.0046adc0
mov eax, dword [esi + 0xd0]
mov dword [esi + 0x890], 1
mov dword [esi + 0x8b0], ebx
mov dword [esi + 0x8b8], ebx
mov dword [esi + 0x8b4], eax
call ebp
movzx ecx, ax
sub dword [esi + 0xfdc], ecx
mov ecx, esi
call fcn.00464f40
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
call dword [sym.imp.user32.dll_ReleaseDC]
mov ecx, dword [esp + 0x6c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.0049ef0f
add esp, 0x64
ret 0x10