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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ba893
mov eax, dword fs:[0]
push eax
sub esp, 0x158
mov eax, dword [0x513008]
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.00421f90
mov ecx, ebx
call fcn.00487410
test al, al
je 0x421efe
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0
mov ecx, ebx
call fcn.00412de0
mov ecx, eax
call fcn.00412da0
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 0x421efe
push 0x5140a0
push ebx
call fcn.004b68a3
add esp, 8
mov edi, eax
test edi, edi
je 0x421efe
mov ecx, dword [ebp - 0x15c]
call fcn.00412de0
mov ecx, eax
call fcn.00412da0
push edi
push ebx
push dword [ebp - 0x1c]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
jne 0x4218f6
push edi
call fcn.004b689e
add esp, 4
jmp 0x421efe
mov dword [ebp - 0x158], 0
mov dword [ebp - 0x18], 0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x158]
push eax
push 0x4e1558
push edi
mov ebx, dword [sym.imp.VERSION.dll_VerQueryValueW]
call ebx
test eax, eax
je 0x421940
mov eax, dword [ebp - 0x158]
test eax, eax
je 0x421940
cmp dword [ebp - 0x18], 0x34
jne 0x421940
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 0x4e19d8
push edi
call ebx
test eax, eax
je 0x421a15
cmp dword [ebp - 0x158], 0
je 0x421a15
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 0x42199c
nop
cmp word [ecx], dx
je 0x421a05
add ecx, 4
cmp ecx, eax
jb 0x421990
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.00421f20
test al, al
jne 0x421a09
push 1
lea eax, [ebp - 0x160]
push eax
push 0
push dword [ebp - 0x18]
push dword [ebp - 0x158]
call fcn.00421f20
test al, al
jne 0x421a09
push 1
lea eax, [ebp - 0x160]
push eax
push 9
push dword [ebp - 0x18]
push dword [ebp - 0x158]
call fcn.00421f20
test al, al
jne 0x421a09
mov eax, dword [ebp - 0x158]
mov eax, dword [eax]
jmp 0x421a0f
mov eax, dword [ecx]
jmp 0x421a0f
mov eax, dword [ebp - 0x160]
mov dword [ebp - 0x15c], eax
lea ecx, [ebp - 0x34]
call fcn.00412b80
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.00486750
push 0x4e1a40
lea edx, [ebp - 0x34]
lea ecx, [ebp - 0x154]
call fcn.004221c0
add esp, 0x14
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x154]
call fcn.00412de0
mov ecx, eax
call fcn.00412da0
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x158]
push ecx
push eax
push edi
call ebx
test eax, eax
je 0x421a94
mov eax, dword [ebp - 0x158]
test eax, eax
je 0x421a94
push eax
lea ecx, [esi + 0x34]
call fcn.004129f0
push 0x4e1a58
lea edx, [ebp - 0x34]
lea ecx, [ebp - 0x13c]
call fcn.004221c0
add esp, 4
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x13c]
call fcn.00412de0
mov ecx, eax
call fcn.00412da0
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x158]
push ecx
push eax
push edi
call ebx
test eax, eax
je 0x421ae6
mov eax, dword [ebp - 0x158]
test eax, eax
je 0x421ae6
push eax
lea ecx, [esi + 0x4c]
call fcn.004129f0
push 0x4e1a78
lea edx, [ebp - 0x34]
lea ecx, [ebp - 0x124]
call fcn.004221c0
add esp, 4
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x124]
call fcn.00412de0
mov ecx, eax
call fcn.00412da0
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x158]
push ecx
push eax
push edi
call ebx
test eax, eax
je 0x421b38
mov eax, dword [ebp - 0x158]
test eax, eax
je 0x421b38
push eax
lea ecx, [esi + 0x64]
call fcn.004129f0
push 0x4e1a90
lea edx, [ebp - 0x34]
lea ecx, [ebp - 0x10c]
call fcn.004221c0
add esp, 4
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x10c]
call fcn.00412de0
mov ecx, eax
call fcn.00412da0
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x158]
push ecx
push eax
push edi
call ebx
test eax, eax
je 0x421b8a
mov eax, dword [ebp - 0x158]
test eax, eax
je 0x421b8a
push eax
lea ecx, [esi + 0x7c]
call fcn.004129f0
push 0x4e1aac
lea edx, [ebp - 0x34]
lea ecx, [ebp - 0xf4]
call fcn.004221c0
add esp, 4
mov byte [ebp - 4], 7
lea ecx, [ebp - 0xf4]
call fcn.00412de0
mov ecx, eax
call fcn.00412da0
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x158]
push ecx
push eax
push edi
call ebx
test eax, eax
je 0x421bdf
mov eax, dword [ebp - 0x158]
test eax, eax
je 0x421bdf
push eax
lea ecx, [esi + 0x94]
call fcn.004129f0
push str.OriginalFileName
lea edx, [ebp - 0x34]
lea ecx, [ebp - 0xdc]
call fcn.004221c0
add esp, 4
mov byte [ebp - 4], 8
lea ecx, [ebp - 0xdc]
call fcn.00412de0
mov ecx, eax
call fcn.00412da0
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x158]
push ecx
push eax
push edi
call ebx
test eax, eax
je 0x421c34
mov eax, dword [ebp - 0x158]
test eax, eax
je 0x421c34
push eax
lea ecx, [esi + 0xac]
call fcn.004129f0
push 0x4e1af0
lea edx, [ebp - 0x34]
lea ecx, [ebp - 0xc4]
call fcn.004221c0
add esp, 4
mov byte [ebp - 4], 9
lea ecx, [ebp - 0xc4]
call fcn.00412de0
mov ecx, eax
call fcn.00412da0
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x158]
push ecx
push eax
push edi
call ebx
test eax, eax
je 0x421c89
mov eax, dword [ebp - 0x158]
test eax, eax
je 0x421c89
push eax
lea ecx, [esi + 0xc4]
call fcn.004129f0
push 0x4e1b08
lea edx, [ebp - 0x34]
lea ecx, [ebp - 0xac]
call fcn.004221c0
add esp, 4
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0xac]
call fcn.00412de0
mov ecx, eax
call fcn.00412da0
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x158]
push ecx
push eax
push edi
call ebx
test eax, eax
je 0x421cde
mov eax, dword [ebp - 0x158]
test eax, eax
je 0x421cde
push eax
lea ecx, [esi + 0xdc]
call fcn.004129f0
push 0x4e1b28
lea edx, [ebp - 0x34]
lea ecx, [ebp - 0x94]
call fcn.004221c0
add esp, 4
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x94]
call fcn.00412de0
mov ecx, eax
call fcn.00412da0
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x158]
push ecx
push eax
push edi
call ebx
test eax, eax
je 0x421d33
mov eax, dword [ebp - 0x158]
test eax, eax
je 0x421d33
push eax
lea ecx, [esi + 0xf4]
call fcn.004129f0
push str.LegalTrademarks
lea edx, [ebp - 0x34]
lea ecx, [ebp - 0x7c]
call fcn.004221c0
add esp, 4
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x7c]
call fcn.00412de0
mov ecx, eax
call fcn.00412da0
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x158]
push ecx
push eax
push edi
call ebx
test eax, eax
je 0x421d82
mov eax, dword [ebp - 0x158]
test eax, eax
je 0x421d82
push eax
lea ecx, [esi + 0x10c]
call fcn.004129f0
push str.PrivateBuild
lea edx, [ebp - 0x34]
lea ecx, [ebp - 0x64]
call fcn.004221c0
add esp, 4
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x64]
call fcn.00412de0
mov ecx, eax
call fcn.00412da0
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x158]
push ecx
push eax
push edi
call ebx
test eax, eax
je 0x421dd1
mov eax, dword [ebp - 0x158]
test eax, eax
je 0x421dd1
push eax
lea ecx, [esi + 0x124]
call fcn.004129f0
push str.SpecialBuild
lea edx, [ebp - 0x34]
lea ecx, [ebp - 0x4c]
call fcn.004221c0
add esp, 4
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x4c]
call fcn.00412de0
mov ecx, eax
call fcn.00412da0
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x158]
push ecx
push eax
push edi
call ebx
test eax, eax
je 0x421e20
mov eax, dword [ebp - 0x158]
test eax, eax
je 0x421e20
push eax
lea ecx, [esi + 0x13c]
call fcn.004129f0
push edi
call fcn.004b689e
add esp, 4
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x4c]
call fcn.00412a40
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x64]
call fcn.00412a40
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x7c]
call fcn.00412a40
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x94]
call fcn.00412a40
mov byte [ebp - 4], 9
lea ecx, [ebp - 0xac]
call fcn.00412a40
mov byte [ebp - 4], 8
lea ecx, [ebp - 0xc4]
call fcn.00412a40
mov byte [ebp - 4], 7
lea ecx, [ebp - 0xdc]
call fcn.00412a40
mov byte [ebp - 4], 6
lea ecx, [ebp - 0xf4]
call fcn.00412a40
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x10c]
call fcn.00412a40
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x124]
call fcn.00412a40
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x13c]
call fcn.00412a40
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x154]
call fcn.00412a40
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00412a40
mov al, 1
jmp 0x421f00
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.004b6253
mov esp, ebp
pop ebp
ret 4