Function at 0x443540
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b966e
mov eax, dword fs:[0]
push eax
sub esp, 0x1b0
mov eax, dword [0x4f52c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1b8], eax
xor ebx, ebx
mov dword [ebp - 4], ebx
mov ecx, dword [ebp + 8]
push ebx
push ecx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
cmp edi, ebx
jne 0x4435ba
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4435b3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x44378e
xor ecx, ecx
lea eax, [edi + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00499075
mov esi, eax
add esp, 4
cmp esi, ebx
jne 0x4435f8
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x4435a7
lea eax, [edi + 1]
push eax
push ebx
push esi
call fcn.0049dad0
mov ecx, dword [ebp + 8]
add esp, 0xc
push esi
push edi
push ebx
push ecx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
cmp eax, ebx
je 0x44358d
mov edx, dword [0x4f4f18]
mov eax, dword [edx + 0xc]
mov ecx, 0x4f4f18
call eax
add eax, 0x10
mov dword [ebp - 0x1a4], eax
lea ecx, [ebp - 0x1a8]
push ecx
lea edx, [ebp - 0x1bc]
push edx
push str.VarFileInfoTranslation
mov byte [ebp - 4], 1
push esi
mov dword [ebp - 0x1a8], ebx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
xor edi, edi
test dword [ebp - 0x1a8], 0xfffffffc
jbe 0x443724
lea ebx, [ebx]
mov eax, dword [ebp - 0x1bc]
movzx ecx, word [eax + edi*4 + 2]
movzx edx, word [eax + edi*4]
push ecx
push edx
lea eax, [ebp - 0x1a0]
push str.StringFileInfo_04x_04xFileVersion
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea ecx, [ebp - 0x1b4]
push ecx
lea edx, [ebp - 0x1b0]
push edx
lea eax, [ebp - 0x1a0]
push eax
push esi
mov dword [ebp - 0x1b0], ebx
mov dword [ebp - 0x1b4], ebx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
lea ecx, [ebp - 0x1ac]
push ecx
mov ecx, dword [ebp - 0x1b0]
call fcn.00401d40
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x1ac]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ebx, [ebp - 0x1a4]
call fcn.00406d60
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1ac]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x443710
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x1a8]
inc edi
shr ecx, 2
xor ebx, ebx
cmp edi, ecx
jb 0x443670
mov edi, dword [ebp - 0x1b8]
lea eax, [ebp - 0x1a4]
call fcn.00404260
push esi
call fcn.00499080
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x1a4]
add eax, 0xfffffff0
add esp, 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x443763
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x443789
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 ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049908b
mov esp, ebp
pop ebp
ret 8