Function at 0x401bea
Capabilities:
Get file version info
Identify system language via api

Disassembly:
mov eax, 0x593260
call fcn.00423b2c
sub esp, 0x20
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x10], esp
mov eax, dword [edi]
call dword [eax + 4]
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
je 0x40215c
push esi
call fcn.0056bc5e
mov ebx, eax
pop ecx
test ebx, ebx
mov dword [ebp - 0x2c], ebx
je 0x40215c
and dword [ebp - 4], 0
push ebx
push esi
push dword [ebp - 0x20]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x401c54
and dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push 0x5d0668
push eax
call fcn.004243be
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 8]
push eax
push 0x5f0dc8
push ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x401c82
cmp dword [ebp - 0x14], 0x34
jne 0x401c82
push 0x34
lea eax, [edi + 4]
push dword [ebp + 8]
push eax
call fcn.00423420
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 8]
push eax
push 0x5f0dac
push ebx
call sub.VERSION.dll_VerQueryValueA
mov esi, dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
and dword [ebp - 0x1c], 0
lea eax, [ebp - 0x1c]
push 0
push eax
call esi
push eax
mov ecx, edi
push dword [ebp - 0x14]
push dword [ebp + 8]
call fcn.00401b9c
test eax, eax
jne 0x401d0d
lea eax, [ebp - 0x1c]
push 1
push eax
call esi
push eax
mov ecx, edi
push dword [ebp - 0x14]
push dword [ebp + 8]
call fcn.00401b9c
test eax, eax
jne 0x401d0d
lea eax, [ebp - 0x1c]
push 1
push eax
push 0
push dword [ebp - 0x14]
mov ecx, edi
push dword [ebp + 8]
call fcn.00401b9c
test eax, eax
jne 0x401d0d
lea eax, [ebp - 0x1c]
push 1
push eax
push 9
push dword [ebp - 0x14]
mov ecx, edi
push dword [ebp + 8]
call fcn.00401b9c
test eax, eax
jne 0x401d0d
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
mov eax, dword [0x5f2228]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x1c]
mov byte [ebp - 4], 1
mov ecx, eax
and eax, 0xffff
shr ecx, 0x10
push ecx
push eax
lea eax, [ebp - 0x18]
push 0x5f0d90
push eax
call fcn.00568f1c
add esp, 0x10
lea eax, [ebp - 0x18]
push 0x5f0d84
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0056c1b2
mov eax, dword [eax]
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp + 8]
push ecx
push eax
push ebx
call sub.VERSION.dll_VerQueryValueA
lea ecx, [ebp - 0x28]
mov esi, eax
call fcn.0056bf1d
test esi, esi
je 0x401d8e
push dword [ebp + 8]
lea ecx, [ebp - 0x28]
call fcn.0056bf8b
push eax
lea ecx, [edi + 0x38]
mov byte [ebp - 4], 2
call fcn.0056c056
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.0056bf1d
lea eax, [ebp - 0x18]
push 0x5f0d74
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0056c1b2
mov eax, dword [eax]
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp + 8]
push ecx
push eax
push ebx
call sub.VERSION.dll_VerQueryValueA
lea ecx, [ebp - 0x28]
mov esi, eax
call fcn.0056bf1d
test esi, esi
je 0x401de3
push dword [ebp + 8]
lea ecx, [ebp - 0x28]
call fcn.0056bf8b
push eax
lea ecx, [edi + 0x3c]
mov byte [ebp - 4], 3
call fcn.0056c056
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.0056bf1d
lea eax, [ebp - 0x18]
push 0x5f0d68
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0056c1b2
mov eax, dword [eax]
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp + 8]
push ecx
push eax
push ebx
call sub.VERSION.dll_VerQueryValueA
lea ecx, [ebp - 0x28]
mov esi, eax
call fcn.0056bf1d
test esi, esi
je 0x401e38
push dword [ebp + 8]
lea ecx, [ebp - 0x28]
call fcn.0056bf8b
push eax
lea ecx, [edi + 0x40]
mov byte [ebp - 4], 4
call fcn.0056c056
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.0056bf1d
lea eax, [ebp - 0x18]
push 0x5f0d58
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0056c1b2
mov eax, dword [eax]
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp + 8]
push ecx
push eax
push ebx
call sub.VERSION.dll_VerQueryValueA
lea ecx, [ebp - 0x28]
mov esi, eax
call fcn.0056bf1d
test esi, esi
je 0x401e8d
push dword [ebp + 8]
lea ecx, [ebp - 0x28]
call fcn.0056bf8b
push eax
lea ecx, [edi + 0x44]
mov byte [ebp - 4], 5
call fcn.0056c056
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.0056bf1d
lea eax, [ebp - 0x18]
push 0x5f0d48
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0056c1b2
mov eax, dword [eax]
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp + 8]
push ecx
push eax
push ebx
call sub.VERSION.dll_VerQueryValueA
lea ecx, [ebp - 0x28]
mov esi, eax
call fcn.0056bf1d
test esi, esi
je 0x401ee2
push dword [ebp + 8]
lea ecx, [ebp - 0x28]
call fcn.0056bf8b
push eax
lea ecx, [edi + 0x48]
mov byte [ebp - 4], 6
call fcn.0056c056
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.0056bf1d
lea eax, [ebp - 0x18]
push 0x5f0d34
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0056c1b2
mov eax, dword [eax]
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp + 8]
push ecx
push eax
push ebx
call sub.VERSION.dll_VerQueryValueA
lea ecx, [ebp - 0x28]
mov esi, eax
call fcn.0056bf1d
test esi, esi
je 0x401f37
push dword [ebp + 8]
lea ecx, [ebp - 0x28]
call fcn.0056bf8b
push eax
lea ecx, [edi + 0x4c]
mov byte [ebp - 4], 7
call fcn.0056c056
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.0056bf1d
lea eax, [ebp - 0x18]
push 0x5f0d28
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0056c1b2
mov eax, dword [eax]
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp + 8]
push ecx
push eax
push ebx
call sub.VERSION.dll_VerQueryValueA
lea ecx, [ebp - 0x28]
mov esi, eax
call fcn.0056bf1d
test esi, esi
je 0x401f8c
push dword [ebp + 8]
lea ecx, [ebp - 0x28]
call fcn.0056bf8b
push eax
lea ecx, [edi + 0x50]
mov byte [ebp - 4], 8
call fcn.0056c056
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.0056bf1d
lea eax, [ebp - 0x18]
push 0x5f0d18
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0056c1b2
mov eax, dword [eax]
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp + 8]
push ecx
push eax
push ebx
call sub.VERSION.dll_VerQueryValueA
lea ecx, [ebp - 0x28]
mov esi, eax
call fcn.0056bf1d
test esi, esi
je 0x401fe1
push dword [ebp + 8]
lea ecx, [ebp - 0x28]
call fcn.0056bf8b
push eax
lea ecx, [edi + 0x54]
mov byte [ebp - 4], 9
call fcn.0056c056
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.0056bf1d
lea eax, [ebp - 0x18]
push 0x5f0d0c
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0056c1b2
mov eax, dword [eax]
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp + 8]
push ecx
push eax
push ebx
call sub.VERSION.dll_VerQueryValueA
lea ecx, [ebp - 0x28]
mov esi, eax
call fcn.0056bf1d
test esi, esi
je 0x402036
push dword [ebp + 8]
lea ecx, [ebp - 0x28]
call fcn.0056bf8b
push eax
lea ecx, [edi + 0x58]
mov byte [ebp - 4], 0xa
call fcn.0056c056
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.0056bf1d
lea eax, [ebp - 0x18]
push 0x5f0cfc
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0056c1b2
mov eax, dword [eax]
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp + 8]
push ecx
push eax
push ebx
call sub.VERSION.dll_VerQueryValueA
lea ecx, [ebp - 0x28]
mov esi, eax
call fcn.0056bf1d
test esi, esi
je 0x40208b
push dword [ebp + 8]
lea ecx, [ebp - 0x28]
call fcn.0056bf8b
push eax
lea ecx, [edi + 0x5c]
mov byte [ebp - 4], 0xb
call fcn.0056c056
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.0056bf1d
lea eax, [ebp - 0x18]
push 0x5f0cec
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0056c1b2
mov eax, dword [eax]
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp + 8]
push ecx
push eax
push ebx
call sub.VERSION.dll_VerQueryValueA
lea ecx, [ebp - 0x28]
mov esi, eax
call fcn.0056bf1d
test esi, esi
je 0x4020e0
push dword [ebp + 8]
lea ecx, [ebp - 0x28]
call fcn.0056bf8b
push eax
lea ecx, [edi + 0x60]
mov byte [ebp - 4], 0xc
call fcn.0056c056
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.0056bf1d
lea eax, [ebp - 0x18]
push 0x5f0cdc
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0056c1b2
mov eax, dword [eax]
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp + 8]
push ecx
push eax
push ebx
call sub.VERSION.dll_VerQueryValueA
lea ecx, [ebp - 0x28]
mov esi, eax
call fcn.0056bf1d
test esi, esi
je 0x402135
push dword [ebp + 8]
lea ecx, [ebp - 0x28]
call fcn.0056bf8b
push eax
lea ecx, [edi + 0x64]
mov byte [ebp - 4], 0xd
call fcn.0056c056
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.0056bf1d
push ebx
call fcn.0056bc87
and byte [ebp - 4], 0
pop ecx
lea ecx, [ebp - 0x18]
call fcn.0056bf1d
push 1
pop eax
jmp 0x40215e
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4