Function at 0x518020
Capabilities:
Get file version info

Disassembly:
push ebp
lea ebp, [esp - 0x31c]
sub esp, 0x31c
push 0xffffffffffffffff
push 0x5c7514
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x72cec4]
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.00518390
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 0x5180e0
lea eax, [esi + esi]
push eax
call fcn.0059bac8
mov edx, eax
add esp, 4
mov dword [ebp + 8], edx
test edx, edx
je 0x51833b
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, 0x5e7030
cmovne ecx, eax
push esi
push ecx
push edx
call fcn.00599570
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 0x5182e1
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 0x518167
push esi
call fcn.0059bac8
add esp, 4
mov dword [ebp + 0x214], eax
test eax, eax
je 0x518340
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 0x5182c8
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
push 0x669a10
push dword [ebp + 0x214]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x5182c8
cmp dword [ebp - 0x24], 0
je 0x5182c8
mov esi, dword [ebp - 0x28]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0x669a14
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.004911a0
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.004911a0
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.004911a0
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.004911a0
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 0x5182e1
push eax
call fcn.0059bad3
add esp, 4
mov eax, dword [ebp + 8]
lea ecx, [ebp + 0xc]
cmp eax, ecx
je 0x5182f4
push eax
call fcn.0059bad3
add esp, 4
mov ecx, dword [ebp - 0x40]
test ecx, ecx
je 0x518314
or eax, 0xffffffff
lock xadd dword [ecx], eax
cmp eax, 1
jne 0x518314
push 4
push 2
push ecx
call fcn.00461780
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.00596709
lea esp, [ebp + 0x31c]
pop ebp
ret 4
call fcn.0049fdc0
call fcn.0049fdc0
int3