Function at 0x407650
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
push 8
call fcn.0040f26c
add esp, 4
mov dword [ebp - 0x10], eax
mov edi, eax
mov esi, 0x42d305
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
push 8
call fcn.0040f26c
add esp, 4
mov dword [ebp - 0x34], eax
mov edi, eax
mov esi, 0x42d305
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x40], 0
lea eax, [ebp - 8]
push eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
je 0x407701
add eax, 8
push eax
xor eax, eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
nop
nop
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jle 0x407e51
push dword [ebp - 4]
push 0x40
xor eax, eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
nop
nop
mov dword [ebp - 0xc], eax
push dword [ebp - 0xc]
push dword [ebp - 4]
push 0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
je 0x407745
add eax, 8
push eax
xor eax, eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
nop
nop
test eax, eax
je 0x407e44
mov eax, 0x44d5bf
push eax
mov ebx, eax
call fcn.00404f0b
pop eax
sub ebx, eax
push ecx
push ebx
push eax
shl ecx, 2
add ecx, ebx
push ecx
call fcn.0040f26c
add esp, 4
pop esi
mov edi, eax
pop ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
pop ecx
test ecx, ecx
je 0x4077b5
push eax
lodsd eax, dword [esi]
push esi
push edi
push ecx
test eax, eax
je 0x4077a9
push eax
mov ebx, eax
call fcn.004028d3
inc eax
push eax
call fcn.0040f26c
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
pop ecx
pop edi
pop esi
stosd dword es:[edi], eax
dec ecx
jne 0x40778c
pop eax
push eax
mov ebx, dword [ebp - 0x10]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x4077d4
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x4077d0
imul eax, dword [ebx]
jmp 0x4077c5
mov ecx, eax
test ecx, ecx
je 0x4077f3
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x4077ec
push ebx
push eax
call fcn.0040f272
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x4077da
call fcn.0040f272
add esp, 4
pop eax
mov dword [ebp - 0x10], eax
cmp dword [ebp + 0xc], 0
jle 0x407847
fild dword [ebp + 0xc]
fstp qword [ebp - 0x4c]
fld qword [ebp - 0x4c]
fadd qword [0x42d364]
fstp qword [ebp - 0x54]
mov ebx, dword [ebp - 0x10]
call fcn.00403904
mov dword [ebp - 0x60], eax
fild dword [ebp - 0x60]
fstp qword [ebp - 0x60]
fld qword [ebp - 0x54]
fsub qword [ebp - 0x60]
fcomp qword [0x42d2e8]
fnstsw ax
test ah, 0x41
je 0x407847
xor eax, eax
jmp 0x40784c
mov eax, 1
test eax, eax
je 0x407a27
mov ebx, dword [ebp - 0x10]
mov ecx, dword [ebx]
inc ecx
shl ecx, 2
add ebx, ecx
mov eax, 0
shl eax, 2
add ebx, eax
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], 0
push 0
push dword [ebp - 0x48]
push dword [ebp - 0x44]
call fcn.00407ef9
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
push eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x407897
push ebx
call fcn.0040f272
add esp, 4
pop eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4078ad
add eax, 8
push eax
push dword [ebp - 0xc]
xor eax, eax
call dword [sym.imp.VERSION.dll_VerQueryValueW]
nop
nop
test eax, eax
je 0x407a22
push 8
push dword [ebp - 0x18]
call fcn.0040833a
mov dword [ebp - 0x20], eax
push 0xc
push dword [ebp - 0x18]
call fcn.0040833a
mov dword [ebp - 0x24], eax
push dword [ebp - 0x20]
call fcn.0040835a
push 0x80000301
push 0
push eax
push 1
mov ebx, 0x168
call fcn.0040f930
add esp, 0x10
mov dword [ebp - 0x48], eax
push dword [ebp - 0x20]
call fcn.0040837a
push 0x80000301
push 0
push eax
push 1
mov ebx, 0x168
call fcn.0040f930
add esp, 0x10
mov dword [ebp - 0x50], eax
push dword [ebp - 0x24]
call fcn.0040835a
push 0x80000301
push 0
push eax
push 1
mov ebx, 0x168
call fcn.0040f930
add esp, 0x10
mov dword [ebp - 0x58], eax
push dword [ebp - 0x24]
call fcn.0040837a
push 0x80000301
push 0
push eax
push 1
mov ebx, 0x168
call fcn.0040f930
add esp, 0x10
mov dword [ebp - 0x60], eax
push dword [ebp - 0x60]
push 0x44d3f1
push dword [ebp - 0x58]
push 0x44d3f1
push dword [ebp - 0x50]
push 0x44d3f1
push dword [ebp - 0x48]
mov ecx, 7
call fcn.0040293e
add esp, 0x1c
mov dword [ebp - 0x64], eax
mov ebx, dword [ebp - 0x48]
test ebx, ebx
je 0x4079b2
push ebx
call fcn.0040f272
add esp, 4
mov ebx, dword [ebp - 0x50]
test ebx, ebx
je 0x4079c2
push ebx
call fcn.0040f272
add esp, 4
mov ebx, dword [ebp - 0x58]
test ebx, ebx
je 0x4079d2
push ebx
call fcn.0040f272
add esp, 4
mov ebx, dword [ebp - 0x60]
test ebx, ebx
je 0x4079e2
push ebx
call fcn.0040f272
add esp, 4
mov dword [ebp - 0x68], 0
push 0
push dword [ebp - 0x68]
lea eax, [ebp - 0x64]
push eax
call fcn.00407ef9
mov dword [ebp - 0x6c], eax
mov ebx, dword [ebp - 0x64]
test ebx, ebx
je 0x407a0a
push ebx
call fcn.0040f272
add esp, 4
mov eax, dword [ebp - 0x6c]
push eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x407a1e
push ebx
call fcn.0040f272
add esp, 4
pop eax
mov dword [ebp - 0x28], eax
jmp 0x407e44
mov dword [ebp - 0x44], 0
push 0
push dword [ebp - 0x44]
mov eax, str.VarFileInfoTranslation
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x48]
push eax
call fcn.00407ef9
mov dword [ebp - 0x4c], eax
mov ebx, dword [ebp - 0x48]
test ebx, ebx
je 0x407a57
push ebx
call fcn.0040f272
add esp, 4
mov eax, dword [ebp - 0x4c]
push eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x407a6b
push ebx
call fcn.0040f272
add esp, 4
pop eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x407a81
add eax, 8
push eax
push dword [ebp - 0xc]
xor eax, eax
call dword [sym.imp.VERSION.dll_VerQueryValueW]
nop
nop
test eax, eax
je 0x407e44
push dword [ebp - 0x18]
call fcn.0040831e
cwde
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x10]
mov ecx, dword [ebx]
inc ecx
shl ecx, 2
add ebx, ecx
push ebx
fild dword [ebp + 0xc]
fstp qword [ebp - 0x48]
fld qword [ebp - 0x48]
fadd qword [0x42d364]
fstp qword [ebp - 0x50]
fld qword [ebp - 0x50]
call fcn.00401000
dec eax
pop ebx
shl eax, 2
add ebx, eax
mov dword [ebp - 0x54], ebx
push 0x42d2e7
mov ebx, dword [ebp - 0x54]
push dword [ebx]
call fcn.00403235
add esp, 8
cmp eax, 0
jne 0x407b92
push 0x100
push 0x40
xor eax, eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
nop
nop
mov dword [ebp - 0x18], eax
push 0x7f
push dword [ebp - 0x18]
push dword [ebp - 0x2c]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_VerLanguageNameW]
nop
nop
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jle 0x407b80
fild dword [ebp - 0x1c]
fstp qword [ebp - 0x48]
fld qword [ebp - 0x48]
fmul qword [0x42d30d]
fstp qword [ebp - 0x50]
fld qword [ebp - 0x50]
call fcn.00401000
push 0x80000301
push 0
push eax
push 0x80000301
push 0
push dword [ebp - 0x18]
push 2
mov ebx, 0x910
call fcn.004101b0
add esp, 0x1c
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x54]
push eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x407b7c
push ebx
call fcn.0040f272
add esp, 4
pop eax
mov dword [ebp - 0x28], eax
push dword [ebp - 0x18]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
nop
nop
jmp 0x407e44
fild dword [ebp - 0x18]
fstp qword [ebp - 0x48]
fld qword [ebp - 0x48]
fadd qword [0x42d30d]
fstp qword [ebp - 0x50]
fld qword [ebp - 0x50]
call fcn.00401000
push eax
call fcn.0040831e
mov word [ebp - 0x30], ax
mov eax, 0x44d610
push eax
push eax
mov ebx, eax
call fcn.00404f0b
pop eax
sub ebx, eax
shl ecx, 1
add ecx, ebx
push ecx
call fcn.0040f26c
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp - 0x34]
push ebx
call fcn.0040f272
add esp, 4
pop eax
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x34]
push eax
push 2
mov eax, 2
call fcn.0040f6e0
add esp, 8
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x44], eax
mov ebx, dword [ebp - 0x34]
mov dword [ebp - 0x48], ebx
call fcn.00404f0b
mov dword [ebp - 0x4c], ecx
mov edi, dword [ebp - 0x48]
mov dword [edi], 1
add edi, 4
mov eax, ecx
inc eax
mov dword [edi], eax
add edi, 4
cmp edi, ebx
je 0x407c2d
mov esi, ebx
shl ecx, 1
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp - 0x4c]
inc eax
shl eax, 1
add eax, 8
push eax
push dword [ebp - 0x48]
call fcn.0040f278
add esp, 8
mov dword [ebp - 0x34], eax
mov edi, eax
add edi, 8
mov eax, dword [ebp - 0x4c]
shl eax, 1
add edi, eax
mov eax, dword [ebp - 0x44]
mov word [edi], ax
mov ebx, dword [ebp - 0x34]
call fcn.00403904
mov dword [ebp - 0x38], eax
push 0x80000301
push 0
push 9
push 1
mov ebx, 0x184
call fcn.00411060
add esp, 0x10
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
push eax
mov ebx, dword [ebp - 0x3c]
test ebx, ebx
je 0x407c97
push ebx
call fcn.0040f272
add esp, 4
pop eax
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x38]
xor ecx, ecx
push eax
lea eax, [ebp - 0x40]
mov ebx, eax
pop eax
inc ecx
push ecx
push ebx
mov dword [ebx], ecx
push eax
cmp ecx, eax
jg 0x407e41
mov ebx, dword [ebp - 0x34]
mov ecx, dword [ebx]
inc ecx
shl ecx, 2
add ebx, ecx
push ebx
mov eax, dword [ebp - 0x40]
dec eax
pop ebx
shl eax, 1
add ebx, eax
mov dword [ebp - 0x44], ebx
mov ebx, dword [ebp - 0x44]
mov ax, word [ebx]
cwde
push 0x80000301
push 0
push eax
mov eax, dword [ebp - 0x30]
cwde
push 0x80000301
push 0
push eax
push 2
mov ebx, 0xa00
call fcn.00411e70
add esp, 0x1c
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x3c]
push eax
call fcn.00408397
mov dword [ebp - 0x44], eax
push dword [ebp - 0x2c]
push str._08lX
push dword [ebp - 0x44]
xor eax, eax
call dword [0x44dee1]
add esp, 0xc
nop
nop
mov ebx, dword [ebp - 0x10]
mov ecx, dword [ebx]
inc ecx
shl ecx, 2
add ebx, ecx
push ebx
fild dword [ebp + 0xc]
fstp qword [ebp - 0x48]
fld qword [ebp - 0x48]
fadd qword [0x42d364]
fstp qword [ebp - 0x50]
fld qword [ebp - 0x50]
call fcn.00401000
dec eax
pop ebx
shl eax, 2
add ebx, eax
mov dword [ebp - 0x54], ebx
mov ebx, dword [ebp - 0x54]
push dword [ebx]
push 0x44d535
push dword [ebp - 0x3c]
push str.StringFileInfo_
mov ecx, 4
call fcn.0040293e
add esp, 0x10
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x5c], 0
push 0
push dword [ebp - 0x5c]
lea eax, [ebp - 0x58]
push eax
call fcn.00407ef9
mov dword [ebp - 0x60], eax
mov ebx, dword [ebp - 0x58]
test ebx, ebx
je 0x407d9b
push ebx
call fcn.0040f272
add esp, 4
mov eax, dword [ebp - 0x60]
push eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x407daf
push ebx
call fcn.0040f272
add esp, 4
pop eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x407dc5
add eax, 8
push eax
push dword [ebp - 0xc]
xor eax, eax
call dword [sym.imp.VERSION.dll_VerQueryValueW]
nop
nop
test eax, eax
je 0x407e39
fild dword [ebp - 0x1c]
fstp qword [ebp - 0x48]
fld qword [ebp - 0x48]
fmul qword [0x42d30d]
fstp qword [ebp - 0x50]
fld qword [ebp - 0x50]
call fcn.00401000
push 0x80000301
push 0
push eax
push 0x80000301
push 0
push dword [ebp - 0x18]
push 2
mov ebx, 0x910
call fcn.004101b0
add esp, 0x1c
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x54]
push eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x407e30
push ebx
call fcn.0040f272
add esp, 4
pop eax
mov dword [ebp - 0x28], eax
jmp 0x407e41
pop eax
pop ebx
pop ecx
jmp 0x407ca7
add esp, 0xc
push dword [ebp - 0xc]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
nop
nop
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x407e6b
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.0040f26c
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x407e70
push eax
mov ebx, dword [ebp - 0x10]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x407e8f
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x407e8b
imul eax, dword [ebx]
jmp 0x407e80
mov ecx, eax
test ecx, ecx
je 0x407eae
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x407ea7
push ebx
push eax
call fcn.0040f272
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x407e95
call fcn.0040f272
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x407ec6
push ebx
call fcn.0040f272
add esp, 4
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x407ed6
push ebx
call fcn.0040f272
add esp, 4
mov ebx, dword [ebp - 0x34]
push ebx
call fcn.0040f272
add esp, 4
mov ebx, dword [ebp - 0x3c]
test ebx, ebx
je 0x407ef2
push ebx
call fcn.0040f272
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0xc