Function at 0x4073d0
Capabilities:
Get file version info

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53285d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x248
mov eax, dword [0x59e074]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x250], edi
mov dword [ebp - 0x254], edi
lea ecx, [ebp - 0x238]
mov dword [ebp - 0x23c], 0
xor eax, eax
push 6
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x224], 0
push 0x565544
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x224], 7
mov word [ebp - 0x238], ax
call fcn.00404720
push 0x208
lea eax, [ebp - 0x220]
mov dword [ebp - 4], 1
push 0
push eax
call fcn.0050c400
add esp, 0xc
lea eax, [ebp - 0x220]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x4074fe
mov byte [ebp - 4], 2
movups xmm0, xmmword [ebp - 0x238]
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], eax
movups xmmword [edi], xmm0
mov word [ebp - 0x238], ax
movq xmm0, qword [ebp - 0x228]
movq qword [edi + 0x10], xmm0
mov dword [ebp - 0x228], eax
mov dword [ebp - 0x224], 7
mov byte [ebp - 4], 1
mov dword [ebp - 0x23c], 1
lea ecx, [ebp - 0x238]
mov dword [ebp - 4], 3
call fcn.004046b0
jmp 0x40776a
lea eax, [ebp - 0x250]
mov dword [ebp - 0x250], 0
push eax
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
xor ecx, ecx
mov esi, eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00509f18
add esp, 4
mov dword [ebp - 0x240], eax
push eax
push esi
push 0
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
jne 0x4075cb
push dword [ebp - 0x240]
call fcn.00509f13
add esp, 4
mov byte [ebp - 4], 7
xor eax, eax
movups xmm0, xmmword [ebp - 0x238]
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
movups xmmword [edi], xmm0
mov word [ebp - 0x238], ax
movq xmm0, qword [ebp - 0x228]
movq qword [edi + 0x10], xmm0
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x224], 7
mov byte [ebp - 4], 1
mov dword [ebp - 0x23c], 1
lea ecx, [ebp - 0x238]
mov dword [ebp - 4], 8
call fcn.004046b0
jmp 0x40776a
mov esi, dword [ebp - 0x240]
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x244]
mov dword [ebp - 0x244], 0
push eax
push str.VarFileInfoTranslation
push esi
mov dword [ebp - 0x248], 0
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
jne 0x407677
push esi
call fcn.00509f13
add esp, 4
mov byte [ebp - 4], 0xc
xor eax, eax
movups xmm0, xmmword [ebp - 0x238]
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
movups xmmword [edi], xmm0
mov word [ebp - 0x238], ax
movq xmm0, qword [ebp - 0x228]
movq qword [edi + 0x10], xmm0
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x224], 7
mov byte [ebp - 4], 1
mov dword [ebp - 0x23c], 1
lea ecx, [ebp - 0x238]
mov dword [ebp - 4], 0xd
call fcn.004046b0
jmp 0x40776a
mov ecx, dword [ebp - 0x244]
mov dword [ebp - 0x24c], 0
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
lea eax, [ebp - 0x220]
push str.StringFileInfo_04x_04xOriginalFilename
push eax
call fcn.0040a920
add esp, 0x10
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0x220]
push eax
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
jne 0x4076f9
push esi
call fcn.00509f13
add esp, 4
lea eax, [ebp - 0x238]
mov ecx, edi
push eax
call fcn.00404ba0
mov dword [ebp - 0x23c], 1
lea ecx, [ebp - 0x238]
mov dword [ebp - 4], 0x11
call fcn.004046b0
jmp 0x40776a
mov edx, dword [ebp - 0x24c]
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x407704
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x238]
call fcn.00404720
mov edx, 0x5655dc
lea ecx, [ebp - 0x238]
call fcn.0040eda0
mov edx, 0x5655dc
lea ecx, [ebp - 0x238]
call fcn.0040ee20
lea eax, [ebp - 0x238]
mov ecx, edi
push eax
call fcn.00404ba0
mov dword [ebp - 0x23c], 1
lea ecx, [ebp - 0x238]
mov dword [ebp - 4], 0x15
call fcn.004046b0
mov byte [ebp - 4], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00509af6
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret