Function at 0x51010c
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], edx
mov esi, eax
mov eax, dword [ebp - 8]
test eax, eax
je 0x510139
xor edx, edx
mov dword [eax], edx
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x510144
xor edx, edx
mov dword [eax], edx
xor eax, eax
push ebp
push 0x510328
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x11], 0
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.004073ec
mov eax, dword [ebp - 0x10]
xor edx, edx
call fcn.004073ec
lea eax, [ebp - 0x20]
push eax
mov eax, esi
call fcn.00407478
mov edi, eax
push edi
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x510305
mov eax, ebx
call fcn.00404278
mov dword [ebp - 0x18], eax
xor edx, edx
push ebp
push 0x5102fe
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x18]
push eax
push ebx
push 0
push edi
call sub.version.dll_GetFileVersionInfoW
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x5101c0
call fcn.00405fc8
jmp 0x510305
lea eax, [ebp - 4]
mov edx, 0x510348
call fcn.00407440
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
push 0x51035c
mov eax, dword [ebp - 0x18]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x51023c
mov eax, dword [ebp - 0x28]
cmp word [eax], 0
jne 0x5101f8
mov eax, dword [ebp - 0x28]
mov word [eax], 0x409
mov eax, dword [ebp - 0x28]
cmp word [eax + 2], 0
jne 0x51020b
mov eax, dword [ebp - 0x28]
mov word [eax + 2], 0x4e4
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 0x28]
movzx eax, word [eax]
mov dword [ebp - 0x38], eax
mov byte [ebp - 0x34], 0
mov eax, dword [ebp - 0x28]
movzx eax, word [eax + 2]
mov dword [ebp - 0x30], eax
mov byte [ebp - 0x2c], 0
lea edx, [ebp - 0x38]
mov ecx, 1
mov eax, 0x51039c
call fcn.00414d60
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x5103bc
push dword [ebp - 4]
push 0x5103ec
lea eax, [ebp - 0x3c]
mov edx, 3
call fcn.004079a4
mov eax, dword [ebp - 0x3c]
call fcn.00407478
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.version.dll_VerQueryValueW
cmp eax, 1
sbb eax, eax
inc eax
test al, al
je 0x510294
lea edx, [ebp - 0x40]
mov eax, dword [ebp - 0x1c]
call fcn.00414bb8
mov edx, dword [ebp - 0x40]
mov eax, dword [ebp - 8]
call fcn.004073ec
mov byte [ebp - 0x11], 1
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x5103bc
push dword [ebp - 4]
push 0x510414
lea eax, [ebp - 0x44]
mov edx, 3
call fcn.004079a4
mov eax, dword [ebp - 0x44]
call fcn.00407478
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.version.dll_VerQueryValueW
cmp eax, 1
sbb eax, eax
inc eax
test al, al
je 0x5102e8
lea edx, [ebp - 0x48]
mov eax, dword [ebp - 0x1c]
call fcn.00414bb8
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x10]
call fcn.004073ec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x510305
mov eax, dword [ebp - 0x18]
call fcn.00404294
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51032f
lea eax, [ebp - 0x48]
mov edx, 4
call fcn.004073e4
lea eax, [ebp - 4]
call fcn.004073dc
ret