Function at 0x5166d0
Capabilities:
Get file version info

Disassembly:
push ebp
lea ebp, [esp - 0x31c]
sub esp, 0x31c
push 0xffffffffffffffff
push 0x5c5b74
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x72b01c]
xor eax, ebp
mov dword [ebp + 0x318], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0x324]
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x14], 0
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
lea eax, [ebp - 0x40]
mov dword [ebp - 4], 0
push eax
mov dword [ebp - 0x14], 1
call fcn.00516a40
add esp, 4
mov ebx, dword [ebp - 0x38]
lea edx, [ebp + 0xc]
mov dword [ebp - 4], 1
mov dword [ebp], 0x100
mov dword [ebp + 4], 0
lea esi, [ebx + 1]
mov dword [ebp + 8], edx
mov byte [ebp - 4], 2
cmp esi, 0x100
jle 0x516790
lea eax, [esi + esi]
push eax
call fcn.0059a128
mov edx, eax
add esp, 4
mov dword [ebp + 8], edx
test edx, edx
je 0x5169eb
mov dword [ebp], esi
mov dword [ebp + 4], esi
mov eax, dword [ebp - 0x3c]
lea esi, [ebx + ebx]
test eax, eax
mov byte [ebp - 4], 3
mov ecx, 0x5e2da0
cmovne ecx, eax
push esi
push ecx
push edx
call fcn.00597bd0
mov eax, dword [ebp + 8]
add esp, 0xc
xor ecx, ecx
push ecx
mov word [eax + esi], cx
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x516991
lea eax, [ebp + 0x218]
mov dword [ebp + 0x20c], 0x100
mov dword [ebp + 0x210], 0
mov dword [ebp + 0x214], eax
mov byte [ebp - 4], 4
cmp esi, 0x100
jle 0x516817
push esi
call fcn.0059a128
add esp, 4
mov dword [ebp + 0x214], eax
test eax, eax
je 0x5169f0
mov dword [ebp + 0x20c], esi
mov dword [ebp + 0x210], esi
push eax
push esi
push 0
push dword [ebp + 8]
mov byte [ebp - 4], 5
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x516978
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
push 0x665780
push dword [ebp + 0x214]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x516978
cmp dword [ebp - 0x24], 0
je 0x516978
mov esi, dword [ebp - 0x28]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0x665784
mov dword [ebp - 0x2c], 0xb
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
movzx eax, word [esi + 0x12]
lea ecx, [ebp - 0x34]
mov ebx, 0x20
cdq
mov word [ebp - 0x10], bx
push dword [ebp - 0x10]
mov byte [ebp - 4], 7
push 0xa
push 0
push edx
push eax
lea eax, [ebp - 0x74]
push eax
call fcn.0048f8a0
mov dword [ebp - 0x14], 3
movzx eax, word [esi + 0x10]
lea ecx, [ebp - 0x74]
mov word [ebp - 0x10], bx
push dword [ebp - 0x10]
cdq
push 0xa
push 0
push edx
push eax
lea eax, [ebp - 0x68]
mov byte [ebp - 4], 8
push eax
call fcn.0048f8a0
mov dword [ebp - 0x14], 7
movzx eax, word [esi + 0x16]
lea ecx, [ebp - 0x68]
mov word [ebp - 0x10], bx
push dword [ebp - 0x10]
cdq
push 0xa
push 0
push edx
push eax
lea eax, [ebp - 0x5c]
mov byte [ebp - 4], 9
push eax
call fcn.0048f8a0
mov dword [ebp - 0x14], 0xf
movzx eax, word [esi + 0x14]
lea ecx, [ebp - 0x5c]
mov word [ebp - 0x10], bx
push dword [ebp - 0x10]
cdq
push 0xa
push 0
push edx
push eax
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 0xa
push eax
call fcn.0048f8a0
mov ecx, dword [edi]
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x20], ecx
mov ecx, dword [edi + 4]
mov dword [edi], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [edi + 8]
mov dword [edi + 4], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x18], ecx
lea ecx, [ebp - 0x20]
mov dword [edi + 8], eax
call fcn.004019e0
lea ecx, [ebp - 0x5c]
call fcn.004019e0
lea ecx, [ebp - 0x68]
call fcn.004019e0
lea ecx, [ebp - 0x74]
call fcn.004019e0
lea ecx, [ebp - 0x34]
call fcn.004019e0
mov eax, dword [ebp + 0x214]
lea ecx, [ebp + 0x218]
cmp eax, ecx
je 0x516991
push eax
call fcn.0059a133
add esp, 4
mov eax, dword [ebp + 8]
lea ecx, [ebp + 0xc]
cmp eax, ecx
je 0x5169a4
push eax
call fcn.0059a133
add esp, 4
mov ecx, dword [ebp - 0x40]
test ecx, ecx
je 0x5169c4
or eax, 0xffffffff
lock xadd dword [ecx], eax
cmp eax, 1
jne 0x5169c4
push 4
push 2
push ecx
call fcn.0045fe90
add esp, 0xc
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x318]
xor ecx, ebp
call fcn.00594d69
lea esp, [ebp + 0x31c]
pop ebp
ret 4
call fcn.0049e4c0
call fcn.0049e4c0
int3