Function at 0x42f260
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4adc82
mov eax, dword fs:[0]
push eax
sub esp, 0x354
mov eax, dword [0x4ef340]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x32c], edi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x340], edi
call fcn.004041d0
mov ecx, eax
test ecx, ecx
jne 0x42f2b3
push 0x80004005
call fcn.00409092
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [edi], eax
mov dword [ebp - 4], 0
call fcn.004041d0
mov ecx, eax
test ecx, ecx
jne 0x42f2db
push 0x80004005
call fcn.00409092
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [edi + 4], eax
mov byte [ebp - 4], 1
call fcn.004041d0
mov ecx, eax
test ecx, ecx
jne 0x42f301
push 0x80004005
call fcn.00409092
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [edi + 8], eax
push 0x1c
lea eax, [ebp - 0x360]
mov byte [ebp - 4], 2
push eax
test esi, esi
mov dword [ebp - 0x360], 0
mov eax, edi
xorps xmm0, xmm0
cmovne eax, esi
movq qword [ebp - 0x34c], xmm0
push eax
movups xmmword [ebp - 0x35c], xmm0
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
cmp eax, 0x1c
je 0x42f355
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x42f580
push 0x20a
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.0043f630
add esp, 0xc
lea eax, [ebp - 0x21c]
push 0x104
push eax
push dword [ebp - 0x35c]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x42f34a
cmp eax, 0x104
jne 0x42f394
xor eax, eax
mov word [ebp - 0x14], ax
lea eax, [ebp - 0x21c]
push 0x5c
push eax
call fcn.0043f8bb
mov edx, eax
add esp, 8
test edx, edx
je 0x42f3b0
add edx, 2
jmp 0x42f3b6
lea edx, [ebp - 0x21c]
test edx, edx
jne 0x42f3be
xor ecx, ecx
jmp 0x42f3d2
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42f3c3
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [edi + 4]
call fcn.0040a3a8
lea ecx, [ebp - 0x21c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42f3e5
sub ecx, edx
lea eax, [ebp - 0x21c]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.0040a3a8
lea eax, [ebp - 0x330]
mov dword [ebp - 0x330], 0
push eax
lea eax, [ebp - 0x21c]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x328], eax
test eax, eax
je 0x42f34a
push eax
call fcn.0043cfd1
mov esi, eax
add esp, 4
mov dword [ebp - 0x344], esi
mov byte [ebp - 4], 3
test esi, esi
je 0x42f56f
push esi
push dword [ebp - 0x328]
lea eax, [ebp - 0x21c]
push 0
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x42f56f
lea eax, [ebp - 0x320]
mov dword [ebp - 0x320], 0
push eax
lea eax, [ebp - 0x334]
push eax
push 0x4c6730
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x42f56f
cmp dword [ebp - 0x320], 4
jb 0x42f56f
push 0x100
lea eax, [ebp - 0x31c]
push 0
push eax
call fcn.0043f630
mov ecx, dword [ebp - 0x334]
lea eax, [ecx + 2]
push eax
push ecx
lea eax, [ebp - 0x31c]
push str.StringFileInfo_04x_04xFileVersion
push eax
call fcn.0042efc0
add esp, 0x1c
mov dword [ebp - 0x324], 0
lea eax, [ebp - 0x320]
push eax
lea eax, [ebp - 0x324]
push eax
lea eax, [ebp - 0x31c]
push eax
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x42f56f
mov eax, dword [ebp - 0x324]
test eax, eax
je 0x42f575
lea ecx, [ebp - 0x328]
push ecx
lea ecx, [ebp - 0x338]
push ecx
lea ecx, [ebp - 0x33c]
push ecx
lea ecx, [ebp - 0x32c]
push ecx
push str._u__u__u__u
push eax
call fcn.00421820
add esp, 0x18
cmp eax, 4
jne 0x42f55f
push dword [ebp - 0x328]
lea eax, [edi + 8]
push dword [ebp - 0x338]
push dword [ebp - 0x33c]
push dword [ebp - 0x32c]
push str._u._u._u._u
push eax
call fcn.004092d4
add esp, 0x18
jmp 0x42f575
push dword [ebp - 0x324]
lea ecx, [edi + 8]
call fcn.0042f840
jmp 0x42f575
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 1
push esi
call fcn.0043d103
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043cfdf
mov esp, ebp
pop ebp
ret 4