Function at 0x415070
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b9a14
mov eax, dword fs:[0]
push eax
sub esp, 0xf0
mov eax, dword [0x506070]
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 edi, ecx
lea eax, [ebp + 8]
mov dword [ebp - 4], 0
cmp edi, eax
je 0x4150b8
push 0xffffffffffffffff
push 0
push eax
call fcn.00485850
lea ecx, [edi + 0x18]
lea eax, [ebp + 0x20]
cmp ecx, eax
je 0x4150cc
push 0xffffffffffffffff
push 0
push eax
call fcn.00485ae0
cmp dword [ebp + 0x1c], 8
lea ecx, [ebp - 0xf8]
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push ecx
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
test esi, esi
je 0x415483
call fcn.00493ba0
cmp dword [ebp + 0x1c], 8
lea ecx, [ebp + 8]
mov ebx, esp
cmovae ecx, dword [ebp + 8]
push ebx
push esi
push dword [ebp - 0xf8]
push ecx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x415483
lea eax, [ebp - 0xf0]
push eax
lea eax, [ebp - 0xec]
push eax
push str.VarFileInfoTranslation
push ebx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x415483
mov esi, dword [ebp - 0xec]
xor eax, eax
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0xa4], 7
mov word [ebp - 0xb8], ax
mov dword [ebp - 0x90], eax
mov dword [ebp - 0x8c], 0xf
mov byte [ebp - 0xa0], al
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], 7
mov word [ebp - 0x88], ax
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], 0xf
mov byte [ebp - 0x70], al
push 0x28
mov byte [ebp - 4], 2
call fcn.00493861
movzx ecx, word [esi + 2]
push ecx
movzx ecx, word [esi]
push ecx
push str._04x_04x
push 0x14
push eax
mov dword [ebp - 0xf4], eax
call fcn.00402390
mov esi, dword [ebp - 0xf4]
lea ecx, [ebp - 0xe8]
add esp, 0x18
push esi
call fcn.004039d0
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
call fcn.004882c0
sub esp, 0x14
mov byte [ebp - 4], 4
mov ecx, esp
mov edx, eax
push 0x4d64cc
call fcn.00486e90
add esp, 4
lea ecx, [ebp - 0x58]
call fcn.00403940
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0xb8]
call fcn.00405210
lea ecx, [ebp - 0x40]
call fcn.00482890
mov eax, dword [ebp - 0x44]
cmp eax, 8
jb 0x415226
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.004857a0
xor eax, eax
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x44], 7
cmp eax, 8
jb 0x41524f
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.004857a0
xor eax, eax
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0xd0]
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov byte [ebp - 4], 2
call fcn.00482890
mov eax, dword [ebp - 0xd4]
cmp eax, 8
jb 0x415290
inc eax
lea ecx, [ebp - 0xe8]
push eax
push dword [ebp - 0xe8]
call fcn.004857a0
push esi
lea ecx, [ebp - 0xe8]
call fcn.004039d0
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 5
call fcn.004882c0
sub esp, 0x14
mov byte [ebp - 4], 6
mov ecx, esp
mov edx, eax
push 0x4d650c
call fcn.00486e90
add esp, 4
lea ecx, [ebp - 0x58]
call fcn.00403940
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x88]
call fcn.00405210
lea ecx, [ebp - 0x40]
call fcn.00482890
mov eax, dword [ebp - 0x44]
cmp eax, 8
jb 0x4152f5
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.004857a0
xor eax, eax
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x44], 7
cmp eax, 8
jb 0x41531e
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.004857a0
xor eax, eax
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0xd0]
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov byte [ebp - 4], 2
call fcn.00482890
mov eax, dword [ebp - 0xd4]
cmp eax, 8
jb 0x41535f
inc eax
lea ecx, [ebp - 0xe8]
push eax
push dword [ebp - 0xe8]
call fcn.004857a0
cmp dword [ebp - 0xa4], 8
lea ecx, [ebp - 0xf0]
mov esi, dword [sym.imp.VERSION.dll_VerQueryValueW]
lea eax, [ebp - 0xb8]
cmovae eax, dword [ebp - 0xb8]
push ecx
lea ecx, [ebp - 0xec]
push ecx
push eax
push ebx
call esi
test eax, eax
je 0x4153bd
cmp dword [ebp - 0xf0], 0
jbe 0x4153bd
push dword [ebp - 0xec]
lea ecx, [ebp - 0xe8]
call fcn.004039d0
push eax
lea ecx, [edi + 0x30]
call fcn.00405210
lea ecx, [ebp - 0xe8]
call fcn.004044f0
cmp dword [ebp - 0x74], 8
lea ecx, [ebp - 0xf0]
push ecx
lea ecx, [ebp - 0xec]
lea eax, [ebp - 0x88]
cmovae eax, dword [ebp - 0x88]
push ecx
push eax
push ebx
call esi
test eax, eax
je 0x415412
cmp dword [ebp - 0xf0], 0
jbe 0x415412
push dword [ebp - 0xec]
lea ecx, [ebp - 0xe8]
call fcn.004039d0
push eax
lea ecx, [edi + 0x60]
call fcn.00405210
lea ecx, [ebp - 0xe8]
call fcn.004044f0
push dword [ebp - 0xf4]
call fcn.00493052
add esp, 4
lea ecx, [ebp - 0x70]
call fcn.00482890
mov eax, dword [ebp - 0x74]
cmp eax, 8
jb 0x415443
inc eax
lea ecx, [ebp - 0x88]
push eax
push dword [ebp - 0x88]
call fcn.004857a0
xor eax, eax
mov dword [ebp - 0x78], 0
lea ecx, [ebp - 0xa0]
mov dword [ebp - 0x74], 7
mov word [ebp - 0x88], ax
call fcn.00482890
mov eax, dword [ebp - 0xa4]
cmp eax, 8
jb 0x415483
inc eax
lea ecx, [ebp - 0xb8]
push eax
push dword [ebp - 0xb8]
call fcn.004857a0
lea ecx, [ebp + 0x20]
call fcn.00482890
mov eax, dword [ebp + 0x1c]
cmp eax, 8
jb 0x4154a0
inc eax
lea ecx, [ebp + 8]
push eax
push dword [ebp + 8]
call fcn.004857a0
lea esp, [ebp - 0x10c]
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.00493041
mov esp, ebp
pop ebp
ret 0x30