Function at 0x4073b0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x419418
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x42b070]
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 edi, edx
mov dword [ebp - 0x38], edi
mov eax, ecx
mov dword [ebp - 0x30], eax
push 0x34
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x78]
push 0
push eax
mov dword [ebp - 0x40], 0
call sub.MSVCR110.dll_memset
mov eax, dword [section..data]
add esp, 0xc
mov ecx, section..data
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x44], eax
xor esi, esi
mov dword [ebp - 4], 0
mov dword [ebp - 0x34], esi
mov byte [ebp - 4], 1
mov eax, dword [section..data]
mov ecx, section..data
mov dword [ebp - 0x24], esi
call dword [eax + 0xc]
lea ebx, [eax + 0x10]
mov dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x1c]
push eax
push edi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x28], esi
mov byte [ebp - 4], 3
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
test edi, edi
je 0x407541
push edi
lea ecx, [ebp - 0x34]
call fcn.004077e0
test al, al
je 0x407541
mov esi, dword [ebp - 0x34]
push esi
push edi
push 0
push dword [ebp - 0x38]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x407541
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x24]
push eax
push 0x41dee8
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x407541
mov esi, dword [ebp - 0x24]
test esi, esi
je 0x407541
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x20]
push eax
mov ecx, 0xd
lea edi, [ebp - 0x78]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x34]
push str.VarFileInfoTranslation
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x407541
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x407541
xor edi, edi
mov eax, dword [ebp - 0x18]
shr eax, 2
cmp edi, eax
jae 0x407541
movzx eax, word [ecx + edi*4 + 2]
push eax
movzx eax, word [ecx + edi*4]
push eax
lea eax, [ebp - 0x2c]
push str.StringFileInfo_04x_04xProductName
push eax
call fcn.00403240
mov ebx, dword [ebp - 0x2c]
add esp, 0x10
cmp dword [ebx - 4], 1
jle 0x407515
push dword [ebx - 0xc]
lea ecx, [ebp - 0x2c]
call fcn.004034d0
mov ebx, dword [ebp - 0x2c]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x28]
push eax
push ebx
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x4075d3
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x4075d3
push eax
lea ecx, [ebp - 0x44]
call fcn.00402e40
mov eax, dword [ebp - 0x30]
mov dword [ebp - 4], 2
mov edi, eax
mov ecx, 0xd
lea esi, [ebp - 0x78]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x44]
add esi, 0xfffffff0
mov ecx, esi
call fcn.00403100
mov ecx, dword [ebp - 0x30]
add eax, 0x10
add ebx, 0xfffffff0
mov dword [ecx + 0x34], eax
or edi, 0xffffffff
mov byte [ebp - 4], 1
lea ecx, [ebx + 0xc]
mov eax, edi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x40758d
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x34]
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x4075b4
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x30]
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.004171a6
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x20]
inc edi
jmp 0x4074d8