Function at 0x494690
Capabilities:
Identify system language via api

Disassembly:
push 0xffffffffffffffff
push 0x4e7ff7
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
push ebx
push esi
push edi
mov eax, dword [0x64a000]
xor eax, esp
push eax
lea eax, [esp + 0xc0]
mov dword fs:[0], eax
mov dword [esp + 0x20], 0
call fcn.00410ba0
or edi, 0xffffffff
cmp eax, 0x80
jl 0x494a51
cmp dword [0x64eab8], 0
jne 0x4947c7
push 8
push str.kernel32
call fcn.0041a250
add esp, 8
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
mov dword [esp + 0x28], 0x4ed20c
lea ecx, [esp + 0x28]
push eax
call fcn.004178d0
mov dword [esp + 0x24], 0
mov byte [esp + 0x2c], 0
mov eax, dword [esp + 0x10]
mov dword [esp + 0xc8], 1
mov ecx, dword [eax]
test ecx, ecx
je 0x494744
cmp ecx, edi
je 0x494751
mov ecx, edi
lock xadd dword [eax], ecx
setne al
test al, al
jne 0x494751
mov eax, dword [esp + 0x10]
push 4
push 2
push eax
call fcn.00413640
add esp, 0xc
push 1
lea ecx, [esp + 0x2c]
call fcn.0041de40
push eax
call fcn.0045a400
add esp, 8
mov dword [esp + 0x24], eax
mov byte [esp + 0x2c], 1
test eax, eax
je 0x494785
push 0x5c61b8
lea ecx, [esp + 0x28]
call fcn.00410af0
mov dword [0x64eab8], eax
mov ecx, dword [esp + 0x28]
mov byte [esp + 0xc8], 0
mov eax, dword [ecx]
test eax, eax
je 0x4947ad
cmp eax, 0xffffffff
je 0x4947ba
mov eax, edi
lock xadd dword [ecx], eax
setne al
test al, al
jne 0x4947ba
mov ecx, dword [esp + 0x28]
push 4
push 2
push ecx
call fcn.00413640
add esp, 0xc
cmp dword [0x64eab8], 0
je 0x494a51
lea eax, [esp + 0x40]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x34], 0x40
mov dword [esp + 0x38], eax
mov dword [esp + 0x30], 0x40
lea eax, [esp + 0x14]
mov dword [esp + 0xc8], 2
push eax
lea eax, [esp + 0x44]
mov dword [esp + 0x18], 0x40
push eax
lea eax, [esp + 0x24]
push eax
push 8
call dword [0x64eab8]
test eax, eax
jne 0x4948dd
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x4948dd
lea eax, [esp + 0x14]
push eax
push 0
lea eax, [esp + 0x24]
push eax
push 8
call dword [0x64eab8]
test eax, eax
je 0x4948dd
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x18]
cmp ecx, dword [esp + 0x30]
lea eax, [esp + 0x30]
mov dword [esp + 0x18], ecx
cmovge eax, edx
push dword [eax]
push ecx
lea ecx, [esp + 0x38]
call fcn.00481080
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x3c]
lea eax, [esp + 0x24]
push eax
push 8
call dword [0x64eab8]
test eax, eax
jne 0x4948dd
mov dword [esp + 0x18], 0x51a640
mov esi, dword [esp + 0xd0]
lea eax, [esp + 0x18]
push eax
mov ecx, esi
mov byte [esp + 0xcc], 3
call fcn.004532a0
lea ecx, [esp + 0x18]
mov dword [esp + 0x20], 1
mov byte [esp + 0xc8], 2
call fcn.004014b0
mov ecx, dword [esp + 0x38]
lea eax, [esp + 0x40]
cmp ecx, eax
je 0x4948d6
push ecx
call fcn.004c27d0
add esp, 4
mov eax, esi
jmp 0x494b37
mov dword [esp + 0x10], 0x51a640
mov eax, dword [esp + 0x1c]
mov byte [esp + 0xc8], 4
cmp dword [0x51a644], eax
jge 0x494922
mov ecx, dword [0x51a640]
cmp ecx, 1
je 0x494914
test ecx, ecx
je 0x494914
push eax
lea ecx, [esp + 0x14]
call fcn.00401f50
jmp 0x49491e
push eax
lea ecx, [esp + 0x14]
call fcn.0041ee30
mov eax, dword [esp + 0x1c]
mov ebx, dword [esp + 0x38]
test eax, eax
je 0x4949cb
mov edi, edi
push 0xffffffffffffffff
lea eax, [esp + 0x1c]
push ebx
push eax
call fcn.00407d20
add esp, 0xc
mov esi, dword [esp + 0x18]
mov byte [esp + 0xc8], 5
cmp dword [esi + 4], 0
je 0x49499e
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x14]
call fcn.00401af0
mov eax, dword [esi + 4]
mov byte [esp + 0xc8], 4
lea ebx, [ebx + eax*2]
mov eax, dword [esi]
add ebx, 2
test eax, eax
je 0x494989
cmp eax, 0xffffffff
je 0x494996
mov eax, edi
lock xadd dword [esi], eax
setne al
test al, al
jne 0x494996
push 4
push 2
push esi
call fcn.00413640
add esp, 0xc
dec dword [esp + 0x1c]
jne 0x494930
jmp 0x4949cb
mov eax, dword [esi]
mov byte [esp + 0xc8], 4
test eax, eax
je 0x4949be
cmp eax, 0xffffffff
je 0x4949cb
mov eax, edi
lock xadd dword [esi], eax
setne al
test al, al
jne 0x4949cb
push 4
push 2
push esi
call fcn.00413640
add esp, 0xc
mov ebx, dword [esp + 0xd0]
lea eax, [esp + 0x10]
push eax
mov ecx, ebx
call fcn.004532a0
mov esi, dword [esp + 0x10]
mov dword [esp + 0x20], 1
mov byte [esp + 0xc8], 2
mov eax, dword [esi]
test eax, eax
je 0x494a0d
cmp eax, 0xffffffff
je 0x494a33
lock xadd dword [esi], edi
dec edi
setne al
test al, al
jne 0x494a33
mov esi, dword [esp + 0x10]
mov eax, dword [esi + 0xc]
lea ecx, [esp + 0x10]
add eax, 4
lea eax, [esi + eax*4]
push eax
mov eax, dword [esi + 8]
add eax, 4
lea eax, [esi + eax*4]
push eax
call fcn.00402f00
push esi
call fcn.004bee90
add esp, 4
mov ecx, dword [esp + 0x38]
lea eax, [esp + 0x40]
cmp ecx, eax
je 0x494b35
push ecx
call fcn.004c27d0
add esp, 4
jmp 0x494b35
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx eax, ax
push eax
call fcn.00494f00
add esp, 4
push eax
lea eax, [esp + 0x20]
push eax
call fcn.004102e0
add esp, 0xc
mov dword [esp + 0xc8], 6
mov dword [esp + 0x14], 0x51a640
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0xcc], 7
call fcn.00401af0
mov ebx, dword [esp + 0xd0]
lea eax, [esp + 0x14]
push eax
mov ecx, ebx
mov byte [esp + 0xcc], 8
call fcn.004532a0
mov esi, dword [esp + 0x14]
mov dword [esp + 0x20], 1
mov byte [esp + 0xc8], 6
mov eax, dword [esi]
test eax, eax
je 0x494ae3
cmp eax, 0xffffffff
je 0x494b09
mov eax, edi
lock xadd dword [esi], eax
setne al
test al, al
jne 0x494b09
mov esi, dword [esp + 0x14]
mov eax, dword [esi + 0xc]
lea ecx, [esp + 0x14]
add eax, 4
lea eax, [esi + eax*4]
push eax
mov eax, dword [esi + 8]
add eax, 4
lea eax, [esi + eax*4]
push eax
call fcn.00402f00
push esi
call fcn.004bee90
add esp, 4
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
test ecx, ecx
je 0x494b28
cmp ecx, 0xffffffff
je 0x494b35
lock xadd dword [eax], edi
dec edi
setne al
test al, al
jne 0x494b35
mov eax, dword [esp + 0x18]
push 4
push 2
push eax
call fcn.00413640
add esp, 0xc
mov eax, ebx
mov ecx, dword [esp + 0xc0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0xbc
ret 4