Function at 0x4085e0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57654b
mov eax, dword fs:[0]
push eax
sub esp, 0x1b4
mov eax, dword [0x5d61f0]
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 ebx, dword [ebp + 8]
mov dword [ebp - 0x1c0], 0
mov dword [ebp - 4], 1
push 0x5ac810
lea ecx, [ebp - 0x1b4]
mov dword [ebp - 0x1b4], 0
call fcn.00402110
push 0
mov byte [ebp - 4], 2
push dword [ebp + 0xc]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
test esi, esi
jne 0x4086dc
mov eax, dword [ebp - 0x1b4]
add eax, 0xfffffff0
push eax
call fcn.00402680
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x1b4]
add eax, 0x10
add edx, 0xfffffff0
or esi, 0xffffffff
mov dword [ebx], eax
add esp, 4
lea ecx, [edx + 0xc]
mov eax, esi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x408692
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
mov ecx, esi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4086b2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edi, dword [ebp + 0x10]
add edi, 0xfffffff0
lea eax, [edi + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x408874
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
jmp 0x408874
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00426df8
add esp, 4
mov edi, eax
push edi
push esi
push 0
push dword [ebp + 0xc]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
lea eax, [ebp - 0x1a8]
push eax
lea eax, [ebp - 0x1b0]
push eax
push str.VarFileInfoTranslation
push edi
mov dword [ebp - 0x1a8], 0
call dword [sym.imp.VERSION.dll_VerQueryValueW]
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 0x1bc]
push str.StringFileInfo_04x_04x_
push eax
call fcn.0040d940
mov edx, dword [eax]
mov ecx, dword [ebp - 0x1b0]
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
push edx
lea eax, [ebp - 0x1a0]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov edx, dword [ebp - 0x1bc]
add edx, 0xfffffff0
or esi, 0xffffffff
add esp, 0x1c
lea ecx, [edx + 0xc]
mov eax, esi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x408781
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x1a4]
push eax
lea eax, [ebp - 0x1ac]
push eax
lea eax, [ebp - 0x1a0]
push eax
push edi
mov dword [ebp - 0x1ac], 0
mov dword [ebp - 0x1a4], 0
call dword [sym.imp.VERSION.dll_VerQueryValueW]
cmp dword [ebp - 0x1a4], 0
je 0x4087f3
mov edx, dword [ebp - 0x1ac]
test edx, edx
jne 0x4087c8
xor ecx, ecx
jmp 0x4087e6
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x1b8], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4087d3
sub ecx, dword [ebp - 0x1b8]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x1b4]
call fcn.00402470
push edi
call fcn.00426e01
mov eax, dword [ebp - 0x1b4]
add eax, 0xfffffff0
push eax
call fcn.00402680
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x1b4]
add eax, 0x10
add edx, 0xfffffff0
mov dword [ebx], eax
add esp, 8
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x408833
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
mov ecx, esi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x408853
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 0x10]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x408874
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, ebx
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.0054940a
mov esp, ebp
pop ebp
ret 0xc