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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x463248
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x480aa4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], ecx
mov eax, dword [ecx]
mov edx, dword [eax + 4]
call edx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x20]
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
test edi, edi
je 0x424eae
push edi
call fcn.0042a440
mov esi, eax
add esp, 4
test esi, esi
mov dword [ebp - 0x2c], esi
je 0x424eae
mov ecx, dword [ebp - 0x20]
push esi
push edi
push ecx
push ebx
mov dword [ebp - 4], 0
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x4247fa
push 0x475c94
lea edx, [ebp - 0x24]
push edx
mov dword [ebp - 0x24], eax
call fcn.00447f4b
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp + 8]
push ecx
push 0x467f94
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x42482c
cmp dword [ebp - 0x14], 0x34
jne 0x42482c
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x1c]
push 0x34
push edx
add eax, 4
push eax
call fcn.00447a50
add esp, 0xc
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp + 8]
push edx
push str.VarFileInfoTranslation
push esi
call sub.VERSION.dll_VerQueryValueW
mov edi, dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov dword [ebp - 0x18], 0
call edi
mov ecx, dword [ebp + 8]
movzx edx, ax
mov eax, ecx
mov ebx, dword [ebp - 0x14]
add ebx, ecx
cmp eax, ebx
jae 0x424870
cmp word [eax], dx
jne 0x42486b
mov edi, dword [eax]
mov ebx, dword [ebp - 0x1c]
jmp 0x4248cf
add eax, 4
jmp 0x424856
push 1
lea eax, [ebp - 0x18]
push eax
call edi
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp + 8]
mov ebx, dword [ebp - 0x1c]
push eax
push ecx
push edx
mov ecx, ebx
call fcn.004241e0
test eax, eax
jne 0x4248cc
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp + 8]
push 1
lea eax, [ebp - 0x18]
push eax
push 0
push ecx
push edx
mov ecx, ebx
call fcn.004241e0
test eax, eax
jne 0x4248cc
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp + 8]
push 1
lea eax, [ebp - 0x18]
push eax
push 9
push ecx
push edx
mov ecx, ebx
call fcn.004241e0
test eax, eax
jne 0x4248cc
mov eax, dword [ebp + 8]
mov edi, dword [eax]
jmp 0x4248cf
mov edi, dword [ebp - 0x18]
call fcn.004321fd
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4248e9
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x18], eax
mov ecx, edi
shr ecx, 0x10
push ecx
movzx edx, di
push edx
lea eax, [ebp - 0x18]
push str.StringFileInfo_04X_04X_
push eax
mov byte [ebp - 4], 1
call fcn.00402050
add esp, 0x10
push 0x46baa0
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x1c]
push edx
call fcn.004136a0
mov eax, dword [eax]
add esp, 0xc
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp + 8]
push edx
push eax
push esi
call sub.VERSION.dll_VerQueryValueW
mov edi, eax
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42495e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test edi, edi
je 0x424987
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.00402730
lea ecx, [ebx + 0x38]
push eax
mov byte [ebp - 4], 2
call fcn.004059e0
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.004016c0
push 0x46ba80
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x1c]
push eax
call fcn.004136a0
mov eax, dword [eax]
add esp, 0xc
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp + 8]
push edx
push eax
push esi
call sub.VERSION.dll_VerQueryValueW
mov edi, eax
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4249ce
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test edi, edi
je 0x4249f7
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.00402730
lea ecx, [ebx + 0x3c]
push eax
mov byte [ebp - 4], 3
call fcn.004059e0
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.004016c0
push 0x46ba68
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x1c]
push eax
call fcn.004136a0
mov eax, dword [eax]
add esp, 0xc
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp + 8]
push edx
push eax
push esi
call sub.VERSION.dll_VerQueryValueW
mov edi, eax
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x424a3e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test edi, edi
je 0x424a67
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.00402730
lea ecx, [ebx + 0x40]
push eax
mov byte [ebp - 4], 4
call fcn.004059e0
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.004016c0
push 0x46ba4c
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x1c]
push eax
call fcn.004136a0
mov eax, dword [eax]
add esp, 0xc
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp + 8]
push edx
push eax
push esi
call sub.VERSION.dll_VerQueryValueW
mov edi, eax
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x424aae
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test edi, edi
je 0x424ad7
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.00402730
lea ecx, [ebx + 0x44]
push eax
mov byte [ebp - 4], 5
call fcn.004059e0
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.004016c0
push 0x46ba2c
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x1c]
push eax
call fcn.004136a0
mov eax, dword [eax]
add esp, 0xc
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp + 8]
push edx
push eax
push esi
call sub.VERSION.dll_VerQueryValueW
mov edi, eax
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x424b1e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test edi, edi
je 0x424b47
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.00402730
lea ecx, [ebx + 0x48]
push eax
mov byte [ebp - 4], 6
call fcn.004059e0
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.004016c0
push str.OriginalFileName
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x1c]
push eax
call fcn.004136a0
mov eax, dword [eax]
add esp, 0xc
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp + 8]
push edx
push eax
push esi
call sub.VERSION.dll_VerQueryValueW
mov edi, eax
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x424b8e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test edi, edi
je 0x424bb7
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.00402730
lea ecx, [ebx + 0x4c]
push eax
mov byte [ebp - 4], 7
call fcn.004059e0
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.004016c0
push 0x46b9f0
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x1c]
push eax
call fcn.004136a0
mov eax, dword [eax]
add esp, 0xc
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp + 8]
push edx
push eax
push esi
call sub.VERSION.dll_VerQueryValueW
mov edi, eax
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x424bfe
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test edi, edi
je 0x424c27
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.00402730
lea ecx, [ebx + 0x50]
push eax
mov byte [ebp - 4], 8
call fcn.004059e0
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.004016c0
push 0x46b9d0
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x1c]
push eax
call fcn.004136a0
mov eax, dword [eax]
add esp, 0xc
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp + 8]
push edx
push eax
push esi
call sub.VERSION.dll_VerQueryValueW
mov edi, eax
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x424c6e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test edi, edi
je 0x424c97
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.00402730
lea ecx, [ebx + 0x54]
push eax
mov byte [ebp - 4], 9
call fcn.004059e0
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.004016c0
push str.Comments
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x1c]
push eax
call fcn.004136a0
mov eax, dword [eax]
add esp, 0xc
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp + 8]
push edx
push eax
push esi
call sub.VERSION.dll_VerQueryValueW
mov edi, eax
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x424cde
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test edi, edi
je 0x424d07
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.00402730
lea ecx, [ebx + 0x58]
push eax
mov byte [ebp - 4], 0xa
call fcn.004059e0
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.004016c0
push str.LegalTrademarks
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x1c]
push eax
call fcn.004136a0
mov eax, dword [eax]
add esp, 0xc
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp + 8]
push edx
push eax
push esi
call sub.VERSION.dll_VerQueryValueW
mov edi, eax
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x424d4e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test edi, edi
je 0x424d77
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.00402730
lea ecx, [ebx + 0x5c]
push eax
mov byte [ebp - 4], 0xb
call fcn.004059e0
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.004016c0
push str.PrivateBuild
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x1c]
push eax
call fcn.004136a0
mov eax, dword [eax]
add esp, 0xc
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp + 8]
push edx
push eax
push esi
call sub.VERSION.dll_VerQueryValueW
mov edi, eax
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x424dbe
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test edi, edi
je 0x424de7
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.00402730
lea ecx, [ebx + 0x60]
push eax
mov byte [ebp - 4], 0xc
call fcn.004059e0
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.004016c0
push 0x46b964
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x1c]
push eax
call fcn.004136a0
mov eax, dword [eax]
add esp, 0xc
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp + 8]
push edx
push eax
push esi
call sub.VERSION.dll_VerQueryValueW
mov edi, eax
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x424e2e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test edi, edi
je 0x424e57
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x28]
call fcn.00402730
lea ecx, [ebx + 0x64]
push eax
mov byte [ebp - 4], 0xd
call fcn.004059e0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.004016c0
push esi
call fcn.0042a445
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
add esp, 4
mov byte [ebp - 4], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x424e83
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4