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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4baa53
mov eax, dword fs:[0]
push eax
sub esp, 0x158
mov eax, dword [0x512008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x15c], ebx
call fcn.00422390
mov ecx, ebx
call fcn.004878e0
test al, al
je 0x4222fe
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0
mov ecx, ebx
call fcn.004131e0
mov ecx, eax
call fcn.004131a0
lea ecx, [ebp - 0x1c]
push ecx
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebx, eax
mov dword [ebp - 0x164], ebx
mov dword [ebp - 4], 0xffffffff
test ebx, ebx
je 0x4222fe
push 0x5130a0
push ebx
call fcn.004b6a63
add esp, 8
mov edi, eax
test edi, edi
je 0x4222fe
mov ecx, dword [ebp - 0x15c]
call fcn.004131e0
mov ecx, eax
call fcn.004131a0
push edi
push ebx
push dword [ebp - 0x1c]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
jne 0x421cf6
push edi
call fcn.004b6a5e
add esp, 4
jmp 0x4222fe
mov dword [ebp - 0x158], 0
mov dword [ebp - 0x18], 0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x158]
push eax
push 0x4e15d8
push edi
mov ebx, dword [sym.imp.VERSION.dll_VerQueryValueW]
call ebx
test eax, eax
je 0x421d40
mov eax, dword [ebp - 0x158]
test eax, eax
je 0x421d40
cmp dword [ebp - 0x18], 0x34
jne 0x421d40
push 0x34
push eax
push esi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
xor eax, eax
mov dword [ebp - 0x15c], eax
mov dword [ebp - 0x160], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x158]
push eax
push 0x4e1a58
push edi
call ebx
test eax, eax
je 0x421e15
cmp dword [ebp - 0x158], 0
je 0x421e15
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx edx, ax
mov ecx, dword [ebp - 0x158]
mov eax, dword [ebp - 0x18]
add eax, ecx
cmp ecx, eax
jae 0x421d9c
nop
cmp word [ecx], dx
je 0x421e05
add ecx, 4
cmp ecx, eax
jb 0x421d90
push 1
lea eax, [ebp - 0x160]
push eax
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx eax, ax
push eax
push dword [ebp - 0x18]
push dword [ebp - 0x158]
call fcn.00422320
test al, al
jne 0x421e09
push 1
lea eax, [ebp - 0x160]
push eax
push 0
push dword [ebp - 0x18]
push dword [ebp - 0x158]
call fcn.00422320
test al, al
jne 0x421e09
push 1
lea eax, [ebp - 0x160]
push eax
push 9
push dword [ebp - 0x18]
push dword [ebp - 0x158]
call fcn.00422320
test al, al
jne 0x421e09
mov eax, dword [ebp - 0x158]
mov eax, dword [eax]
jmp 0x421e0f
mov eax, dword [ecx]
jmp 0x421e0f
mov eax, dword [ebp - 0x160]
mov dword [ebp - 0x15c], eax
lea ecx, [ebp - 0x34]
call fcn.00412f80
mov dword [ebp - 4], 2
mov ecx, dword [ebp - 0x15c]
mov eax, ecx
shr eax, 0x10
push eax
movzx eax, cx
push eax
push str.StringFileInfo_04X_04X_
lea eax, [ebp - 0x34]
push eax
call fcn.00486c20
push 0x4e1ac0
lea edx, [ebp - 0x34]
lea ecx, [ebp - 0x154]
call fcn.004225c0
add esp, 0x14
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x154]
call fcn.004131e0
mov ecx, eax
call fcn.004131a0
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x158]
push ecx
push eax
push edi
call ebx
test eax, eax
je 0x421e94
mov eax, dword [ebp - 0x158]
test eax, eax
je 0x421e94
push eax
lea ecx, [esi + 0x34]
call fcn.00412df0
push 0x4e1ad8
lea edx, [ebp - 0x34]
lea ecx, [ebp - 0x13c]
call fcn.004225c0
add esp, 4
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x13c]
call fcn.004131e0
mov ecx, eax
call fcn.004131a0
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x158]
push ecx
push eax
push edi
call ebx
test eax, eax
je 0x421ee6
mov eax, dword [ebp - 0x158]
test eax, eax
je 0x421ee6
push eax
lea ecx, [esi + 0x4c]
call fcn.00412df0
push 0x4e1af8
lea edx, [ebp - 0x34]
lea ecx, [ebp - 0x124]
call fcn.004225c0
add esp, 4
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x124]
call fcn.004131e0
mov ecx, eax
call fcn.004131a0
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x158]
push ecx
push eax
push edi
call ebx
test eax, eax
je 0x421f38
mov eax, dword [ebp - 0x158]
test eax, eax
je 0x421f38
push eax
lea ecx, [esi + 0x64]
call fcn.00412df0
push 0x4e1b10
lea edx, [ebp - 0x34]
lea ecx, [ebp - 0x10c]
call fcn.004225c0
add esp, 4
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x10c]
call fcn.004131e0
mov ecx, eax
call fcn.004131a0
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x158]
push ecx
push eax
push edi
call ebx
test eax, eax
je 0x421f8a
mov eax, dword [ebp - 0x158]
test eax, eax
je 0x421f8a
push eax
lea ecx, [esi + 0x7c]
call fcn.00412df0
push 0x4e1b2c
lea edx, [ebp - 0x34]
lea ecx, [ebp - 0xf4]
call fcn.004225c0
add esp, 4
mov byte [ebp - 4], 7
lea ecx, [ebp - 0xf4]
call fcn.004131e0
mov ecx, eax
call fcn.004131a0
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x158]
push ecx
push eax
push edi
call ebx
test eax, eax
je 0x421fdf
mov eax, dword [ebp - 0x158]
test eax, eax
je 0x421fdf
push eax
lea ecx, [esi + 0x94]
call fcn.00412df0
push str.OriginalFileName
lea edx, [ebp - 0x34]
lea ecx, [ebp - 0xdc]
call fcn.004225c0
add esp, 4
mov byte [ebp - 4], 8
lea ecx, [ebp - 0xdc]
call fcn.004131e0
mov ecx, eax
call fcn.004131a0
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x158]
push ecx
push eax
push edi
call ebx
test eax, eax
je 0x422034
mov eax, dword [ebp - 0x158]
test eax, eax
je 0x422034
push eax
lea ecx, [esi + 0xac]
call fcn.00412df0
push 0x4e1b70
lea edx, [ebp - 0x34]
lea ecx, [ebp - 0xc4]
call fcn.004225c0
add esp, 4
mov byte [ebp - 4], 9
lea ecx, [ebp - 0xc4]
call fcn.004131e0
mov ecx, eax
call fcn.004131a0
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x158]
push ecx
push eax
push edi
call ebx
test eax, eax
je 0x422089
mov eax, dword [ebp - 0x158]
test eax, eax
je 0x422089
push eax
lea ecx, [esi + 0xc4]
call fcn.00412df0
push 0x4e1b88
lea edx, [ebp - 0x34]
lea ecx, [ebp - 0xac]
call fcn.004225c0
add esp, 4
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0xac]
call fcn.004131e0
mov ecx, eax
call fcn.004131a0
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x158]
push ecx
push eax
push edi
call ebx
test eax, eax
je 0x4220de
mov eax, dword [ebp - 0x158]
test eax, eax
je 0x4220de
push eax
lea ecx, [esi + 0xdc]
call fcn.00412df0
push 0x4e1ba8
lea edx, [ebp - 0x34]
lea ecx, [ebp - 0x94]
call fcn.004225c0
add esp, 4
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x94]
call fcn.004131e0
mov ecx, eax
call fcn.004131a0
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x158]
push ecx
push eax
push edi
call ebx
test eax, eax
je 0x422133
mov eax, dword [ebp - 0x158]
test eax, eax
je 0x422133
push eax
lea ecx, [esi + 0xf4]
call fcn.00412df0
push str.LegalTrademarks
lea edx, [ebp - 0x34]
lea ecx, [ebp - 0x7c]
call fcn.004225c0
add esp, 4
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x7c]
call fcn.004131e0
mov ecx, eax
call fcn.004131a0
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x158]
push ecx
push eax
push edi
call ebx
test eax, eax
je 0x422182
mov eax, dword [ebp - 0x158]
test eax, eax
je 0x422182
push eax
lea ecx, [esi + 0x10c]
call fcn.00412df0
push str.PrivateBuild
lea edx, [ebp - 0x34]
lea ecx, [ebp - 0x64]
call fcn.004225c0
add esp, 4
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x64]
call fcn.004131e0
mov ecx, eax
call fcn.004131a0
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x158]
push ecx
push eax
push edi
call ebx
test eax, eax
je 0x4221d1
mov eax, dword [ebp - 0x158]
test eax, eax
je 0x4221d1
push eax
lea ecx, [esi + 0x124]
call fcn.00412df0
push str.SpecialBuild
lea edx, [ebp - 0x34]
lea ecx, [ebp - 0x4c]
call fcn.004225c0
add esp, 4
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x4c]
call fcn.004131e0
mov ecx, eax
call fcn.004131a0
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x158]
push ecx
push eax
push edi
call ebx
test eax, eax
je 0x422220
mov eax, dword [ebp - 0x158]
test eax, eax
je 0x422220
push eax
lea ecx, [esi + 0x13c]
call fcn.00412df0
push edi
call fcn.004b6a5e
add esp, 4
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x4c]
call fcn.00412e40
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x64]
call fcn.00412e40
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x7c]
call fcn.00412e40
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x94]
call fcn.00412e40
mov byte [ebp - 4], 9
lea ecx, [ebp - 0xac]
call fcn.00412e40
mov byte [ebp - 4], 8
lea ecx, [ebp - 0xc4]
call fcn.00412e40
mov byte [ebp - 4], 7
lea ecx, [ebp - 0xdc]
call fcn.00412e40
mov byte [ebp - 4], 6
lea ecx, [ebp - 0xf4]
call fcn.00412e40
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x10c]
call fcn.00412e40
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x124]
call fcn.00412e40
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x13c]
call fcn.00412e40
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x154]
call fcn.00412e40
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00412e40
mov al, 1
jmp 0x422300
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004b6413
mov esp, ebp
pop ebp
ret 4