Function at 0x418880
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49da83
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x4d506c]
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, ecx
mov dword [ebp - 0x50], ebx
lea ecx, [ebp - 0x84]
mov dword [ebp - 0x54], 0
call fcn.0041a4f0
mov esi, eax
lea ecx, [ebp - 0x6c]
mov dword [ebp - 4], 0
call fcn.0041a4a0
mov byte [ebp - 4], 1
cmp dword [esi + 0x14], 8
jb 0x4188e2
mov esi, dword [esi]
push esi
mov edx, eax
lea ecx, [ebp - 0x40]
call fcn.00410d30
add esp, 4
mov edx, dword [ebp - 0x58]
cmp edx, 8
jb 0x418906
mov ecx, dword [ebp - 0x6c]
inc edx
push 2
call fcn.004044e0
add esp, 4
xor eax, eax
mov dword [ebp - 0x58], 7
mov dword [ebp - 0x5c], 0
mov word [ebp - 0x6c], ax
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x70]
cmp edx, 8
jb 0x418937
mov ecx, dword [ebp - 0x84]
inc edx
push 2
call fcn.004044e0
add esp, 4
xor eax, eax
mov dword [ebp - 0x70], 7
push eax
push 0x4af88e
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x74], 0
mov word [ebp - 0x84], ax
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x28], al
call fcn.00406080
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x44]
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
push ecx
cmovae eax, dword [ebp - 0x40]
push eax
mov dword [ebp - 0x4c], 0
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
test edi, edi
jne 0x4189f3
lea eax, [ebp - 0x28]
mov dword [ebx + 0x14], 0xf
mov dword [ebx + 0x10], 0
mov ecx, ebx
push eax
mov byte [ebx], 0
call fcn.00406390
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x4189c2
mov ecx, dword [ebp - 0x28]
inc edx
push 1
call fcn.004044e0
add esp, 4
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
cmp edx, 8
jb 0x418abe
mov ecx, dword [ebp - 0x40]
inc edx
push 2
call fcn.004044e0
add esp, 4
jmp 0x418abe
lea eax, [edi + 1]
push eax
call fcn.0049b111
mov esi, eax
add esp, 4
mov dword [ebp - 0x50], esi
test esi, esi
je 0x418990
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
push esi
cmovae eax, dword [ebp - 0x40]
push edi
push 0
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
jne 0x418a2d
push esi
call fcn.0049b11a
add esp, 4
jmp 0x418a92
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x4c]
push eax
push 0x4c20a8
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x418a22
mov eax, dword [ebp - 0x4c]
push dword [ebp - 0x50]
mov edi, dword [eax + 8]
movzx esi, word [eax + 0xe]
call fcn.0049b11a
mov eax, 0x51eb851f
mul esi
movzx eax, di
shr edx, 5
push edx
push eax
shr edi, 0x10
lea eax, [ebp - 0x9c]
push edi
push str._04d_04d_02d
push eax
call fcn.00419610
add esp, 0x18
lea ecx, [ebp - 0x28]
push eax
call fcn.00405a10
lea ecx, [ebp - 0x9c]
call fcn.004059d0
mov dword [ebx + 0x14], 0xf
lea eax, [ebp - 0x28]
mov dword [ebx + 0x10], 0
mov ecx, ebx
push eax
mov byte [ebx], 0
call fcn.00406390
lea ecx, [ebp - 0x28]
call fcn.004059d0
lea ecx, [ebp - 0x40]
call fcn.004056e0
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.0049abdf
mov esp, ebp
pop ebp
ret